skip to navigation
skip to content

Not Logged In

PySO8601 0.1.7

PySO8601 aims to parse any ISO 8601 date, including Week dates, Ordinal dates, intervals and durations.

Package Documentation

PySO8601 aims to be a better Python module to parse ISO 8601 dates. It is inspired by the iso8601 currently available in the pypi repository, however this module is designed to accept any valid ISO8601 formatted string:

Truncated representations (YYYYMM, YYMMDD, hhmmss, etc) are also accepted.

USAGE

import PySO8601
spam = PySO8601.parse('2011-01-01T14:32')
print spam # prints: 2011-01-01 14:32:00
eggs = PySO8601.parse('2010W052') # Week 5, day 2
print eggs # prints: 2010-02-01 00:00:00

For full examples on usage please review the specs in the source.

IMPORTANT NOTES

Durations:
Due to the difficult nature of working with calendars, for the moment years specified in the duration format are set to 365 days and months are set to 30 days. This will hopefully be addressed in the near future.
 
File Type Py Version Uploaded on Size
PySO8601-0.1.7.tar.gz (md5) Source 2012-07-07 5KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 69 downloads in the last week
  • 342 downloads in the last month