Closed goodevilgenius closed 4 months ago
Resolves #11
This change adds three new Periods: Hour, Minute, and Second
These are added at the end, rather than before Day, in order to minimize breaking changes (so we don't change the values of existing Periods).
internal/parser/relative/parser.go is updated to use these periods for times such as "2 hours ago", or "now".
internal/parser/relative/parser.go
All affected tests were updated as needed.
Thanks!
Resolves #11
This change adds three new Periods: Hour, Minute, and Second
These are added at the end, rather than before Day, in order to minimize breaking changes (so we don't change the values of existing Periods).
internal/parser/relative/parser.go
is updated to use these periods for times such as "2 hours ago", or "now".All affected tests were updated as needed.