Skip to main content

Utilities for parsing iso8601 intervals and periods

Project description

iso8601utils
=======================

A set of utilities for parsing and validating iso8601 `durations
<https://en.wikipedia.org/wiki/ISO_8601#Durations>`_ and `intervals
<https://en.wikipedia.org/wiki/ISO_8601#Time_intervals`_.

.. code:: python

from iso8601utils import parsers
parsers.interval()
(start, end)

parsers.duration()
(duration)

from iso8601utils import validators
validators.interval()
True
validators.interval()
False
validators.duration()
True
validators.duration()
False

This project currently only supports utc times.

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

iso8601utils-0.0.1.dev1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

iso8601utils-0.0.1.dev1-py2-none-any.whl (4.5 kB view hashes)

Uploaded Python 2

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