|
From: | Paul Eggert |
Subject: | Re: date without time |
Date: | Fri, 2 Aug 2024 21:18:33 -0700 |
User-agent: | Mozilla Thunderbird |
On 2024-08-02 01:42, Bruno Haible wrote:
A more intelligent programmer will answer it with "A day is a period of 23 or 24 or 25 hours, going from 00:00 to 24:00 of each date"
The TZDB timezones don't always fit that paradigm exactly. In Samoa, the "day" 1892-07-04 was a period of 48 hours, because they moved the clock back 24 hours at midnight so that visiting Americans could celebrate an double-length Fourth of July. This has been called "a masterpiece of diplomatic flattery".
Something similar happened in Kwajalein, where 1969-09-30 lasted 47 hours. Conversely, 1993-08-21 lasted zero hours in Kwajalein, as they advanced the clock 24 hours at midnight.
The TZDB timezone data handle both the Samoa and the Kwajalein cases, and glibc supports that.
[Prev in Thread] | Current Thread | [Next in Thread] |