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

Uploaded Source

Built Distribution

coards-1.0.3-py2.7.egg (8.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for coards-1.0.3.tar.gz
Algorithm Hash digest
SHA256 16da33e853840dcf0a894e09253032210864ded472a70dce87dacfedc4cf70b6
MD5 f26c7a4632fa5ded0b76e77c050ed611
BLAKE2b-256 62809877132400845ad30249a2ecea0edcd6248d1dfaa59b9661d245a2eae4ee

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for coards-1.0.3-py2.7.egg
Algorithm Hash digest
SHA256 69dae41cddfd1d0302c13c78a73fcb2ae6ee6252436a3bce0f3d595920222cc9
MD5 7c7417214016e3553c1d8e689fb8f5dd
BLAKE2b-256 ac60f88a1db8545757ef67a4d497fb66de4f0a5b4509b5fc9fa699214b481a51

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