A parser for COADS-compliant dates
Project description
A COADS compliant time parser
This module is intended to help parse time values represented using the COARDS convention. Here is a simple example:
>>> from coards import parse >>> a = [1, 2, 3] >>> units = 'days since 1998-03-01 12:00:00' >>> b = [parse(value, units) for value in a] >>> print b [datetime.datetime(1998, 3, 2, 12, 0), datetime.datetime(1998, 3, 3, 12, 0), datetime.datetime(1998, 3, 4, 12, 0)]
Credits
News
1.0.3
Release date: 20130214
Create parser/formatter objects to avoid repeated parsing.
Happy Valentine’s!
1.0.2
Release date: 20120823
Fixed regexp that parses the origin.
1.0.1
Release date: 20120818
Parse RFC3339 dates.
1.0
Release date: 20120529
Refactored code so that it works with more dates.
Using modern-package-template for directory structure.
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
coards-1.0.3.1.tar.gz
(4.4 kB
view details)
Built Distribution
coards-1.0.3.1-py2.7.egg
(8.0 kB
view details)
File details
Details for the file coards-1.0.3.1.tar.gz
.
File metadata
- Download URL: coards-1.0.3.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87f44495b78d93c8a3e70e56927687080dea77b433874304909e21571853035d |
|
MD5 | 630c5685490bf49aa763d1a6f8fac18c |
|
BLAKE2b-256 | d9115df4ffae0e3d3d9a05939ecc1a574f1fd58a0b0cb54d946323e97c31b92d |
Provenance
File details
Details for the file coards-1.0.3.1-py2.7.egg
.
File metadata
- Download URL: coards-1.0.3.1-py2.7.egg
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cf1056c5ee0787db10d51e9fad4cfc03ccd04b1a73e882b9b2e17e1e3b9421b |
|
MD5 | f68c292e063d042c3ba70cc6c681738f |
|
BLAKE2b-256 | 09035e512067b78022278a8c1c703d9356dc9ceae387eebde2c45402644506a0 |