[Datetime-SIG] Drop datetime's offset restrictions?

Chris Barker chris.barker at noaa.gov
Wed Aug 12 23:01:22 CEST 2015


On Wed, Aug 12, 2015 at 1:51 PM, Carl Meyer <carl at oddbird.net> wrote:

> Tangent:
>


> >  * 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.


indeed -- I'd forgotten how easy is was to create one of those out of the
box.

-Chris





>
> Carl
>
>
> _______________________________________________
> Datetime-SIG mailing list
> Datetime-SIG at python.org
> https://mail.python.org/mailman/listinfo/datetime-sig
> The PSF Code of Conduct applies to this mailing list:
> https://www.python.org/psf/codeofconduct/
>



-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150812/3477e6f6/attachment-0001.html>


More information about the Datetime-SIG mailing list