1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/lib/subunit/python/iso8601
2010-01-16 19:53:49 +13:00
..
LICENSE subunit: Import new version. 2010-01-16 19:53:49 +13:00
README subunit: Import new version. 2010-01-16 19:53:49 +13:00
README.subunit subunit: Import new version. 2010-01-16 19:53:49 +13:00
setup.py subunit: Import new version. 2010-01-16 19:53:49 +13:00
test_iso8601.py subunit: Import new version. 2010-01-16 19:53:49 +13:00

A simple package to deal with ISO 8601 date time formats.

ISO 8601 defines a neutral, unambiguous date string format, which also
has the property of sorting naturally.

e.g. YYYY-MM-DDTHH:MM:SSZ or 2007-01-25T12:00:00Z

Currently this covers only the most common date formats encountered, not
all of ISO 8601 is handled.

Currently the following formats are handled:

* 2006-01-01T00:00:00Z
* 2006-01-01T00:00:00[+-]00:00

I'll add more as I encounter them in my day to day life. Patches with 
new formats and tests will be gratefully accepted of course :)

References:

* http://www.cl.cam.ac.uk/~mgk25/iso-time.html - simple overview

* http://hydracen.com/dx/iso8601.htm - more detailed enumeration of
  valid formats.

See the LICENSE file for the license this package is released under.