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.2

Release date: 20130214

  • Create parser/formatter objects to avoid repeated parsing.

  • Fixed regexp that parses the origin.

  • Happy Valentine’s!

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

Uploaded Source

Built Distribution

coards-1.0.2-py2.7.egg (7.6 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for coards-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3a5640c79e2daf93f524ce43317229e37e132fb0ee9f749dd8def18c5e8cf902
MD5 d91af49af0597cb2f66756ed2e276cd9
BLAKE2b-256 eb57b771f7ab3f8ce32ed449db87a413cb413cb7547231bc57266385543221ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: coards-1.0.2-py2.7.egg
  • Upload date:
  • Size: 7.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for coards-1.0.2-py2.7.egg
Algorithm Hash digest
SHA256 ad2d5b57ffff2826cd053f6e3585f19785a9e869c93b1a764b1b229ec18a04f8
MD5 ba28ede69b06d58da950bad51171cb89
BLAKE2b-256 48b6d6ad628df31b9b5c13cf1dbe28ca08583566823493452722066452ec9f08

See more details on using hashes here.

Supported by

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