-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canonical form: Time span sunset-00:00 is not beautified #80
Comments
Just to explain to the behaviour in the first two examples: There are two different mechanisms at work which both only change the end time if there is actually a "numeric" start time value.
|
According to (current version of?) the specification, See https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification#explain:extended_hour_minutes :
|
It's the reason that the "strict time mode" flag exists as there was a lot of ambiguity around the whole subject and at a certain point I decided to relax the strict behaviour as you can spend the whole day arguing exactly what the original intent was. |
This library beautifies time ranges like
16:00-0:00
=>16:00-24:00
16:00-28:00
=>16:00-04:00
When the start time is an event time, this is however not done, which seems a little inconsistent. I.e.
sunset-00:00
is not beautified tosunset-24:00
(I am looking deeply into details on parse results and differences between the parsers and their "canonical forms" of string creation results currently, so this is why I will probably post more issues over the next few days.)
The text was updated successfully, but these errors were encountered: