[Numpy-discussion] fixing up datetime
Thu Jun 2 12:46:18 CDT 2011
On Thu, Jun 2, 2011 at 12:17 PM, Benjamin Root <email@example.com> wrote:
Just throwing it out there. Back in my Perl days (I do not often admit
> this), the one module that I thought was really well done was the datetime
> module. Now, I am not saying that we would need to support the calendar
> from Lord of the Rings or anything like that, but its floating timezone
> concept and other features were quite useful. Maybe there are lessons to be
> learned from there?
The perl stuff does look very extensive. Here's a sample link:
This maybe clarifies a little something I wrote before, where I suggested
the NumPy datetime is always UTC (or another unambiguous representation),
and repr/print use local time as the display format, which is still
unambiguous UTC but more human-readable.
They give an example where adding 6 months to a local time can cross a
daylight savings boundary, and having 'now' give back a local time instead
of UTC would imply that there is some kind of functionality like this in
there, very confusing. Better to leave local time as just a display format.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion