Convert COARDS time specification to a datetime object.
This module converts between a given COARDS time specification and a Python datetime object, which is much more useful. Suppose you have an Array of values [1,2,3] and units “days since 1998-03-01 12:00:00”:
>>> a = [1, 2, 3] >>> units = 'days since 1998-03-01 12:00:00' >>> b = [from_udunits(value, units) for value in a] >>> print b.year 1998 >>> b > b True >>> print b - b 1 day, 0:00:00
The list b now contains objects which can be compared and manipulated in a consistent way.
The latest version is available in a Subversion repository.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size coards-0.2.1.tar.gz (4.3 kB)||File type Source||Python version None||Upload date||Hashes View|
|Filename, size coards-0.2.1-py2.4.egg (9.0 kB)||File type Egg||Python version 2.4||Upload date||Hashes View|