Closed huadongliu closed 2 years ago
Hi, I'm having the same issue. In C# DateTime.MaxValue
is the equivalent of 23:59:59.9999999 UTC which is a one 100-nanosecond (a tenth of a microsecond) before 00:00:00 UTC, January 1, 10000. When that is parsed by isodate.parse_datetime
it raises the exception described above - it parses 59.9999999 (7 nines) as 60. Instead I think it should cap at 1 microsecond away from 60 as it seems that is the smallest unit of time datetime.time
can express and the full minute is not meant.
fixed in 89f8089
https://github.com/gweis/isodate/blob/master/src/isodate/isotime.py#L127