isodate icon indicating copy to clipboard operation
isodate copied to clipboard

isodatetime.parse_datetime doesnt recognise endtime 24:00:00

Open WhiteGobo opened this issue 1 year ago • 0 comments

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

WhiteGobo avatar Sep 22 '23 10:09 WhiteGobo