3 ms·
> I can tell you authoritatively that the UNIX timestamp for 2023-01-01 00:00 UTC is 1672560000. That assumes the calendar definition does not change. What if
by __david__ 13y ago
> I can tell you authoritatively that the UNIX timestamp for 2023-01-01 00:00 UTC is 1672560000.
That assumes the calendar definition does not change. What if a 10 month calendar with a new year that starts in spring somehow becomes widely popular and adopted as the standard sometime in the next 10 years?
Then suddenly 2023-01-01 is not 1672560000 and is actually 1680332400.
- haberman 13y agoUTC is defined in terms of days. UTC calendar dates are presumed to use the Gregorian calendar. 2023-01-01 in the Gregorian calendar maps to a specific day (Julian day 2459946). If you wanted to use a different calendar, you would need to map it to Julian days also to convert between the two. The idea that the world would suddenly change to a new calendar is highly unlikely, and if it did happen it is not at all clear what the correct behavior would be for future dates that had been specified before the switch.