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

Credits

News

1.0.4

Release date: 20130520

  • Parse microseconds.

1.0.3.2

Release date: 20130218

  • Allow origin to be expressed only as HH.

1.0.3.1

Release date: 20130214

  • Fix minor typo in code.

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


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.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

coards-1.0.4-py2.7.egg (8.1 kB view details)

Uploaded Source

File details

Details for the file coards-1.0.4.tar.gz.

File metadata

  • Download URL: coards-1.0.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for coards-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a0af2e365ac2adaacf7760bd39b0e1da1c583ea5c2f78e577bc39bffd7bdf608
MD5 c6053bb8322f5f77e772afef27d63c93
BLAKE2b-256 6475945f11d6d8d9c1279704057011bc1373d03e08433ebf1cae77df61dc1fd4

See more details on using hashes here.

Provenance

File details

Details for the file coards-1.0.4-py2.7.egg.

File metadata

  • Download URL: coards-1.0.4-py2.7.egg
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for coards-1.0.4-py2.7.egg
Algorithm Hash digest
SHA256 52b45fdbe97319c7969541acd73626233217a223601d07b9f4210fb848422b12
MD5 2210adf1115076745149d02bc0727b0c
BLAKE2b-256 522811a2760ba0b712270d1096104bd7a6e56315b61451692ab65f6bc2b06735

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page