houseabsolute / DateTime-Format-ISO8601

Parses ISO8601 formats
http://metacpan.org/release/DateTime-Format-ISO8601/
Other
3 stars 3 forks source link

Doesn't accept midnight as end of day #10

Closed scruss closed 4 years ago

scruss commented 4 years ago

2020-07-24T24:00 is valid input for ISO-8601 < 2019 but is not accepted. You'll still find it generated in datalogging and billing applications.

autarch commented 4 years ago

The latest spec (2019) does explicitly forbid this, so I don't know that it's a good idea to add this.

scruss commented 4 years ago

Up to you. But the “Standards Document” cited in the reference is the 2000 release where hour 24 is supported.

(Not your code in particular, but this change in the standard is going to break so much power utility code when it ever makes it into billing systems. International train arrivals and certain military rosters use hours ≥ 24 to avoid off-by-ones in accounting.)