simonpoole / OpeningHoursParser

Parser for string values according to the OSM opening hours specification
MIT License
32 stars 12 forks source link

End time earlier than start time considered not valid #82

Closed westnordost closed 9 months ago

westnordost commented 9 months ago

A time span like 22:00-05:00 is not considered valid in strict mode, even though

simonpoole commented 9 months ago

As I previously pointed out https://github.com/simonpoole/OpeningHoursParser/issues/80#issuecomment-1881145178, mentioned in the README and in the JavaDoc https://github.com/simonpoole/OpeningHoursParser/blob/master/src/main/java/ch/poole/openinghoursparser/OpeningHoursParser.jj#L79 the behaviour wrt times is configurable.