[Numpy-discussion] Time Zones and datetime64

Chris Barker - NOAA Federal chris.barker at noaa.gov
Wed Apr 17 20:36:19 EDT 2013


On Fri, Apr 12, 2013 at 1:36 PM, Anthony Scopatz <scopatz at gmail.com> wrote:
> Option (2), what datetime does, is the wrong model.  This is more
> complicated in both the implementation and API, and leads to lots of broken
> code, weird errors, and no clear right way of doing thing.

could you elaborate a bit more? I've never tried to use timezone
support with datetime, so I have no idea what goes wrong -- but it
looks reasonable to me. though it really punts on the hard stuff, so
maybe no point.

-Chris






> Be Well
> Anthony
>
>
>
> On Fri, Apr 12, 2013 at 2:57 PM, Chris Barker - NOAA Federal
> <chris.barker at noaa.gov> wrote:
>>
>> On Fri, Apr 12, 2013 at 9:52 AM, Riccardo De Maria
>> <riccardodemaria at gmail.com> wrote:
>> > Not related to leap seconds and physically accurate time deltas, I have
>> > just
>> > noticed that SQLite has a nice API:
>> >
>> > http://www.sqlite.org/lang_datefunc.html
>> >
>> > that one can be inspired from. The source contains a date.c which looks
>> > reasonably clear.
>>
>> well, I don't see any timezone support in there at all. It appears the
>> use UTC, though I"m not entierly sure from the docs what now() would
>> return.
>>
>> So I think it's pretty much like my "use UTC" proposal.
>>
>>
>> -Chris
>>
>>
>>
>>
>> --
>>
>> 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
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



-- 

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



More information about the NumPy-Discussion mailing list