Skip to main content

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)]



Release date: 20130214

  • Create parser/formatter objects to avoid repeated parsing.
  • Fixed regexp that parses the origin.
  • Happy Valentine’s!


Release date: 20120818

  • Parse RFC3339 dates.


Release date: 20120529

  • Refactored code so that it works with more dates.
  • Using modern-package-template for directory structure.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for coards, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size coards-1.0.2.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View
Filename, size coards-1.0.2-py2.7.egg (7.6 kB) File type Egg Python version 2.7 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page