Skip to main content

Description

Build Status Documentation Status

pyRFC3339 parses and generates RFC 3339-compliant timestamps using Python datetime.datetime objects.

>>> from pyrfc3339 import generate, parse
>>> from datetime import datetime, timezone
>>> generate(datetime.now(timezone.utc)) #doctest:+ELLIPSIS
'...T...Z'
>>> parse('2009-01-01T10:01:02Z')
datetime.datetime(2009, 1, 1, 10, 1, 2, tzinfo=datetime.timezone.utc)
>>> parse('2009-01-01T14:01:02-04:00')
datetime.datetime(2009, 1, 1, 14, 1, 2, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=72000)))

Installation

To install the latest version from PyPI:

$ pip install pyRFC3339

To install the latest development version:

$ pip install https://github.com/kurtraschke/pyRFC3339/tarball/main#egg=pyRFC3339-dev

Tests as well as enforcement of code style, formatting, and type safety are run with tox:

$ tox

To build the documentation with Sphinx:

$ tox -e docs

The documentation is also available online at:

https://pyrfc3339.readthedocs.io/

Release files for pyRFC3339 2.1.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 pyRFC3339 2.1.0
File Size Uploaded
pyrfc3339-2.1.0.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyRFC3339 2.1.0
File Interpreter ABI Platform
pyrfc3339-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / pyrfc3339-2.1.0.tar.gz

Download URL pyrfc3339-2.1.0.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c569a9714faf115cdb20b51e830e798c1f4de8dabb07f6ff25d221b5d09d8d7f
BLAKE2b-256 checksum
How to use checksums
b47f3c194647ecb80ada6937c38a162ab3edba85a8b6a58fa2919405f4de2509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2025.

Transparency log

Release files / pyrfc3339-2.1.0-py3-none-any.whl

Download URL pyrfc3339-2.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
560f3f972e339f579513fe1396974352fd575ef27caff160a38b312252fcddf3
BLAKE2b-256 checksum
How to use checksums
34900200184d2124484f918054751ef997ed6409cb05b7e8dcbf5a22da4c4748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.1

2 release files

1.1

2 release files

1.0

2 release files

0.2

1 release file

0.1

1 release file

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