Skip to main content
https://travis-ci.org/OldhamMade/PySO8601.svg?branch=master

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

Python 3:

PySO8601 is now compatible with Python 2.6, 2.7, and >= 3.3.

Durations:

parse_duration, when only provided a duration string, will assume 365 days in a year and 30 days in a month, due to the difficult nature of working with calendars. However, passing a start or end timestamp will provide the correct calculation based on that date.

Metadata

Release files for PySO8601 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PySO8601 0.2.0
File Size Uploaded Provenance Actions
PySO8601-0.2.0.tar.gz 7.2 kB Without provenance Details for PySO8601-0.2.0.tar.gz

Release files / PySO8601-0.2.0.tar.gz

Download URL PySO8601-0.2.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1db90482f87280427eda6534d1ff01abe4b606c79ce0ab18f2228bdbf95c5239
BLAKE2b-256 checksum
How to use checksums
dd7668455543fbc9d5bbe5274e3530988ca512bfa96e0263a591bd7ca2bf5244
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PySO8601 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page