4 ms·
When you go one hour back for daylight savings, you can't tell with just epoch if it's the first or second time you're at that time. With timezones you can, sin
by lucasmullens 7y ago
When you go one hour back for daylight savings, you can't tell with just epoch if it's the first or second time you're at that time. With timezones you can, since it switches between PST and PDT.
- wahern 7y ago1:30PST and 1:30PDT bijectively map to distinct UTC timestamps.
- alpaca128 7y agoI don't know that much about epoch, but isn't the point of it to be completely independent of stuff like timezones or daylight savings? Doesn't it track every second since 1970 no matter if meanwhile time jumped back or forward in some countries?
- CameronNemo 7y agoUTC has leap seconds, but otherwise this is correct.
- kyralis 7y agoThis is fundamentally incorrect. Because UTC doesn't change, the two "identical" times are different UTC values.
- foepys 7y agoWhat happened when you set an alarm for 2022 in CEST? The EU will very likely get rid of DST by then. You alarm will be an hour off when you convert to UTC beforehand.