Convert COARDS time specification to a datetime object.
Project description
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[0].year 1998 >>> b[1] > b[0] True >>> print b[1] - b[0] 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coards-0.2.2.tar.gz.
File metadata
- Download URL: coards-0.2.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
637ea33e5df7c93234a64ac574b196bb6147fa97f14849ddb9ddd8308fdac547
|
|
| MD5 |
e36ba27ded52b0c95944c3a615025e2b
|
|
| BLAKE2b-256 |
9bfbf6dad7a0b15c189e19577767551d1b007e083ff381d25e7e1c0a402d8b6f
|
File details
Details for the file coards-0.2.2-py2.4.egg.
File metadata
- Download URL: coards-0.2.2-py2.4.egg
- Upload date:
- Size: 9.0 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f53c1cd39158a2929ef10634e434526964c9f00801d7f7f69ad516f697ef0e0
|
|
| MD5 |
65bc50537641a64f760971013e1f590a
|
|
| BLAKE2b-256 |
15886e048c593dfb923ed980835ab334edfcd46f903fc5af67614afcf5eea648
|