I need to implement a custom Time::Format
parser. Is Time.parse
the best way to do that or is there a first-class, documented way to do that similarly to Time::Format::*
?
Time::Format::Parser
is explicitly undocumented.
I need to implement a custom Time::Format
parser. Is Time.parse
the best way to do that or is there a first-class, documented way to do that similarly to Time::Format::*
?
Time::Format::Parser
is explicitly undocumented.
I’m not sure why Time::Format::Parser
is undocumented. Maybe to avoid compatibility concerns with so many tiny API methods? I believe it has been refactored quite a bit in the past.
Although it has been pretty stable lately and I wouldn’t expect much reason for it to change.
So I’d probably just use it. Worst case if the stdlib code changes, you can always put the current parser into your codebase and use that.