[Numpy-discussion] timezones and datetime64

Pauli Virtanen pav@iki...
Wed Apr 3 02:59:27 CDT 2013


Chris Barker - NOAA Federal <chris.barker <at> noaa.gov> writes:
[clip]
> actually, I think datetime64 is naive -- the problem is entirely the I/O

It's a counter from unix epoch, but as it's just an integer you can
probably redefine the epoch and pretend your local time is UTC
(as long as you don't care about DST etc.). It seems it could
be made to work by interpreting timezoneless input as UTC dates.

-- 
Pauli Virtanen



More information about the NumPy-Discussion mailing list