Skip to main content

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

Release date: 20130604

  • Create converter object.

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.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coards-1.0.5-py2.7.egg (8.3 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for coards-1.0.5.tar.gz
Algorithm Hash digest
SHA256 f870b614288e7f93c8f545cb21ec27fd5abd0c0e25ab1f4677524a95ba7bcfd7
MD5 ea68bb48de34c6e1dd3fa4ff1a408ce8
BLAKE2b-256 4c7f88c67673ee6fe689412170b2a2f98350dbeae52084569a37db5e57abda50

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for coards-1.0.5-py2.7.egg
Algorithm Hash digest
SHA256 11eede31fcc8c9386c4579eba66d772a09ca533f7fd81d0cebe8771be4299459
MD5 54ef40633b0ffdeeef2e3a74401a7b44
BLAKE2b-256 25da3be128b5947df391b52288b64ed30ad6c8af864cbbfdf1538bbc5c56a3eb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 files

1.0.4

2 files

1.0.3.2

2 files

1.0.3.1

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

1 file

0.1.0

2 files

Supported by

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