Skip to content
Tcl Source Code Check-in [60c16ebe54]
Login

Check-in [60c16ebe54]

Overview
Comment:Fix relative months and years before the common era, and dates that wrap around in clock add and the julian day helpers (see [f894a85b9a]). AddMonths added the months to the year of the era, so 1 year after 101 B.C.E. gave 102 B.C.E. It now works with the astronomical year. The julian day was an int, and TclGetIntFromObj() accepts values up to UINT_MAX and wraps them around, so clock add with large offsets and the julian day helpers returned wrapped dates. The julian day is now a Tcl_WideInt, the helpers calculate in 64 bits, and julian days out of +-0x7F000000 (about 5.8 million years) raise "integer value too large to represent". clock format of such seconds is unchanged (clock-61.3).
Timelines: family | ancestors | descendants | both | clock-range-8-6
Files: files | file ages | folders
SHA3-256: 60c16ebe544578ec6c6fdfdfaf9f4ebdccc3d03663f0274fe531a24a9d0005b7
User & Date: serhiy.storchaka on 2026-11-14 13:10:44.840
Other Links: branch diff | manifest | tags
Context
2026-11-24
11:34
Fix [f894a85b9a]: Free-form clock scan silently wraps numbers that do not fit into an int check-in: a0288fe887 user: jan.nijtmans tags: core-8-6-branch
2026-11-14
13:10
Fix relative months and years before the common era, and dates that wrap around in clock add and the... closed check-in: 60c16ebe54 user: serhiy.storchaka tags: clock-range-8-6
2026-11-13
17:32
Fix [1523045fff] and [731062ffff]: [file copy] to a filesystem that cannot store the mode or the tim... check-in: b5e7b93862 user: jan.nijtmans tags: core-8-6-branch
Changes