[Numpy-discussion] timezones and datetime64

Warren Weckesser warren.weckesser at gmail.com
Thu Apr 4 00:17:30 EDT 2013


On 4/3/13, Benjamin Root <ben.root at ou.edu> wrote:
> On Wed, Apr 3, 2013 at 7:52 PM, Chris Barker - NOAA Federal <
> chris.barker at noaa.gov> wrote:
>
>>
>> Personally, I never need finer resolution than seconds, nor more than
>> a century, so it's no big deal to me, but just wondering....
>>
>>
> A use case for finer resolution than seconds (in our field, no less!) is
> lightning data.  At the last SciPy conference,  a fellow meteorologist
> mentioned how difficult it was to plot out lightning data at resolutions
> finer than microseconds (which is the resolution of the python datetime
> objects).  Matplotlib has not supported the datetime64 object yet (John
> passed before he could write up that patch).
>
> Cheers!
> Ben
>
> By the way, my 12th Rule of Programming is "Never roll your own datetime"


A rule on par with "never get involved in a land war in Asia": both
equally Fraught With Peril. :)


Warren

>



More information about the NumPy-Discussion mailing list