gweis / isodate

ISO 8601 date/time parser
BSD 3-Clause "New" or "Revised" License
155 stars 59 forks source link

isodatetime.parse_datetime doesnt recognise endtime 24:00:00 #85

Open WhiteGobo opened 1 year ago

WhiteGobo commented 1 year ago

Iso 8601 recognises 24:00:00 as endtime of a day afaik.

With the code

isodatetime.parse_datetime("1999-12-31T24:00:00")

i would expect as result:

datetime.datetime(2000, 1, 1, 0, 0)

Instead only a ValueError is raised because isotime.parse_time only recognises hours till 23