Hacker News new | ask | show | jobs
by mikepurvis 1590 days ago
Isn’t DateTime fairly consistently just a singular moment it time, either absolute (TZ specified) or floating and therefore locale dependent?

Pretty sure these are the two cases which the python stdlib datetime covers.

1 comments

1:30 AM on whatever date we "fall back" for DST isn't singular in my timezone
It depends on what you mean by timezones. 1:30am Pacific Time isn't well defined, but 1:30am PST and 1:30am PDT are.
Quick reminder that those timezone abbreviation are not unique (i.e. Philippine Standard Time)

https://www.timeanddate.com/time/zones/

Until daylight savings time ends and it's 1:30am twice. Time is hard.
Those two things are called the time zone - a geographical area that has and had the same time all the time - and the zone time within that time zone which might change from time to time, for example regularly because of daylight saving time or kind somewhat randomly because people change their mind about which time they want to use.