Tangent: On 08/12/2015 02:44 PM, Chris Barker wrote: [snip] > The problem I see with ISO 8601 is that (AFAICT) there is no way to > specify a time zone -- only a UTC offset. > > and offsets are not unique. > > So if someone wants to create a datetime object from an ISO 8601 string, > they have two options: > > * The string does not contain an offset -- they should get a naive datetime > > * The string does contain an offset -- they have to get a datetime with > a UTC tzinfo object, with the offset having been applied.
No, they should get a datetime object matching the ISO datetime they passed in, with a FixedOffset tzinfo instance attached to it. Carl
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Datetime-SIG mailing list [email protected] https://mail.python.org/mailman/listinfo/datetime-sig The PSF Code of Conduct applies to this mailing list: https://www.python.org/psf/codeofconduct/
