clock scan -validate, ISO-8601, 24:00
% clock scan "24:00" unable to convert input string: invalid time (hour) % clock scan "00:00 am" 1732057200
Hour "24:00" should be interpreted as "00:00" next day. This is only allowed when minutes and seconds are zero.
When using am/pm, the 12-hours clock runs from 1 to 12, so "00" should be invalid. But ... since in Japan it is common to use a 0-11 hour clock, I think we should leave this as is. Just mentioning this for completeness.
Since those two are fully separate from leap-seconds handling, let's handle them separately.
ca80b67634Re-apply fix [aee9f2b916], which was partially lost in [24e42b9bd1] check-in2024-11-25 11:53:565b5f4e8334Fix [aee9f2b916] and [f2b5f89c0d]: clock scan of leapsecond/24:00, ISO-8601-compatibility. check-in2024-11-21 11:27:089e101107d1Fix [aee9f2b916]: clock scan -validate, ISO-8601, 24:00. Remove HAVE_MKTIME: It isn't used anywhere any more check-in2024-11-20 19:33:41f77d6fcac2[aee9f2b916]: Allow "24:00", but only as indication for the end of the day. check-in2024-11-20 12:15:12
Agree about "00:00 am" or "00:00 pm" (and it doesn't bother at all).
However, I don't think that "24:00 am" or "24:00 pm" (with meridian) are correct values (in sense of relation to meridian), so [bf0e4fe924f77516] looks a bit strange to me (regardless validity mode)... Although, probably matter of taste either.
And "24:00" (without meridian) is already working properly (excepting in validity mode). So my guess, we need to fix only this.
[fix] now merged to trunk.