3 ms·
Except you can remove the ambiguity by stating either PDT or PST. You don't have that option in 1927 Shanghai.
by raldi 14y ago
Except you can remove the ambiguity by stating either PDT or PST. You don't have that option in 1927 Shanghai.
- mortehu 14y agoNote that strftime does not produce unambiguous time zone names. The four-letter Australian time zones are printed with names such as EST and CST. Better use -0500, +0545 and the likes, as suggested by ISO 8601.
- jonskeet 14y agoIf you want to indicate a time zone you shouldn't just use the offsets - they're ambiguous in that several different time zones can have the same offset at any point in time. Better (IMO) to use the zoneinfo ID, e.g. "Europe/London" - along with the offset as well, in case the local time is ambiguous in that time zone due to a daylight saving transition.