Hacker News new | ask | show | jobs
by adrian_b 26 days ago
As another poster already said, UTC is the correct choice for any kind of timestamps and for the storage of any time information about the past. (Actually TAI is an even better choice for these purposes.)

For future events, the "time" when they will occur is not "time", but a different data type, which should be called "legal time", "local time" or the like.

The "local time" for future events must include the geographic location attached to the event, from which the applicable time zone can be derived, at a time close to when the event is due.

1 comments

Fun fact: It is theoretically possible to schedule a future event at a time which will never occur. While unlikely, a time zone change might skip over the scheduled local time, which will thus never happen.