Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-11-25
13:02
Update changes.md. No need to mention [882da1] in changes.md: It was a regression after [aee9f2], wh... check-in: d8e9fe6c29 user: jan.nijtmans tags: trunk, main
11:57
No need to mention [882da1] in changes.md: It was a regression after [aee9f2], which never was in an... closed check-in: c840ffc3be user: jan.nijtmans tags: bug-882da1e28b
11:53
Re-apply fix [aee9f2b916], which was partially lost in [24e42b9bd1] check-in: ca80b67634 user: jan.nijtmans tags: bug-882da1e28b
2024-11-21
21:14
fix leap seccond scan [f2b5f89c0d8520ea] (and [aee9f2b916afd976]): recognize leap second (estimate a... leaf check-in: d4b4648db7 user: sebres tags: bug-f2b5f89c0d-alt-leapsec
21:09
test coverage illustrating the proper leep second behaviour for [f2b5f89c0d8520ea] (and [aee9f2b916a... check-in: 377156e138 user: sebres tags: bug-f2b5f89c0d-alt-leapsec
11:27
Fix [aee9f2b916] and [f2b5f89c0d]: clock scan of leapsecond/24:00, ISO-8601-compatibility. check-in: 5b5f4e8334 user: jan.nijtmans tags: core-8-branch
2024-11-20
19:39 • Closed ticket [aee9f2b916]: clock scan -validate, ISO-8601, 24:00 plus 6 oth... artifact: c015fc0fbe user: jan.nijtmans
19:33
Fix [aee9f2b916]: clock scan -validate, ISO-8601, 24:00. Remove HAVE_MKTIME: It isn't used anywhere... check-in: 9e101107d1 user: jan.nijtmans tags: trunk, main
16:18 • Ticket [aee9f2b916] clock scan -validate, ISO-8601, 24:00 status still Open ... artifact: 4450f980c9 user: sebres
12:51 • Ticket [aee9f2b916]: 4 changes artifact: 32208e192e user: jan.nijtmans
12:32 • Ticket [aee9f2b916]: 3 changes artifact: f3ec0f577c user: jan.nijtmans
12:15
[aee9f2b916]: Allow "24:00", but only as indication for the end of the day. check-in: f77d6fcac2 user: jan.nijtmans tags: bug-aee9f2b916
09:37 • New ticket [aee9f2b916] clock scan -vaildate, ISO-8859-1, 24:00. artifact: 079fbf1e04 user: jan.nijtmans

clock scan -validate, ISO-8601, 24:00

Closed / Fixedaee9f2b916afd9765631a3b74383248ddbfa4e09Created 2 years agoUpdated 2 years ago
Descriptionwiki2024-11-20 09:37:22
When working on the leap-seconds, two more small deviations:
% 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.

Referenced by4
jan.nijtmans Ticket [aee9f2b916]: 3 changes [History diff]2024-11-20 12:32:10
jan.nijtmans Ticket [aee9f2b916]: 4 changes [History diff]2024-11-20 12:51:10
sebreswiki2024-11-20 16:18:10

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.

jan.nijtmanswiki2024-11-20 19:39:59

[fix] now merged to trunk.

Log in (anonymous is fine) to add a comment.