strict-rfc3339
Strict, simple, lightweight RFC3339 functions
What it is and what it does
strict-rfc3339 is a lightweight RFC3339 timestamp library that converts between Unix timestamps and RFC3339 strings. It validates RFC3339 format strictly and produces output with either UTC (Z) or local timezone offsets. The package deliberately avoids full timezone libraries and DST complexity by working with offsets and the C time module's local/UTC split.
The library uses only Python's standard time and calendar modules, keeping dependencies minimal. It rejects leap seconds (seconds 60–61) during validation and is limited by the system's time_t size on 32-bit platforms. The package has been abandoned since 2016 and receives no maintenance, so compatibility with modern Python versions and edge cases is not guaranteed.
Use it for:
- Validate incoming RFC3339 timestamps in API requests or log files without pulling in a heavy datetime library.
- Convert Unix timestamps to human-readable RFC3339 strings for REST API responses or logging.
- Generate current time in RFC3339 format with local timezone offset for application timestamps.
- Parse RFC3339 strings back to Unix timestamps for time-series data or event processing.
- Build simple time utilities in projects that must minimize external dependencies.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts Unix timestamps to and from RFC3339 strings, with support for UTC or local timezone offsets, using only the standard library's time and calendar modules.
No, unless you have a legacy codebase already using it. The package is abandoned (no releases since 2016), marked Beta, and copyleft-licensed (GPLv3), which restricts use in proprietary code. Modern alternatives like the datetime module, dateutil, or pytz are actively maintained. Use this only if you are already locked into it or need minimal dependencies in a GPL-compatible project.
Install
strict-rfc3339 on PyPI
pip
pip install strict-rfc3339uv
uv add strict-rfc3339poetry
poetry add strict-rfc3339Installing strict-rfc3339
Before you install
High install friction: the package is abandoned (last release 2016-04-24, no activity for 3764 days) and marked Beta. No runtime dependencies, but the lack of maintenance means bugs and compatibility issues will not be addressed.
License in practice
GPLv3 copyleft license: any code that imports this package must be distributed under GPLv3 or a compatible license. Proprietary or permissively-licensed projects cannot use it without legal review.
Quickstart
import strict_rfc3339
# Validate an RFC3339 string
valid = strict_rfc3339.validate_rfc3339("2013-03-25T12:42:31+00:32")
# Convert RFC3339 to Unix timestamp
timestamp = strict_rfc3339.rfc3339_to_timestamp("2013-03-25T12:42:31+00:32")
# Convert timestamp to RFC3339 (UTC)
rfc_string = strict_rfc3339.timestamp_to_rfc3339_utcoffset(1364213431)
Verify before relying
- Whether the package works reliably on modern Python versions (3.10+) despite being abandoned since 2016
- Whether leap second handling limitations affect your use case
- Whether 32-bit time_t limitations (dates ~1901–2038) are relevant to your application
Package facts
| License | GNU General Public License Version 3 (copyleft) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,764 days since the last release |
| First released | |
| Downloads | 940,945/month — #4,679 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: strict-rfc3339-0.7.tar.gz
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
ntplibQuery NTP servers to retrieve network time…
permissive · top 5,000 on PyPI
udatetimeudatetime provides fast RFC3339-compliant…
permissive · top 15,000 on PyPI
rfc3339-validatorValidates whether a string conforms to the…
permissive · top 1,000 on PyPI
timesTimes converts between universal (UTC) time and…
permissive · top 15,000 on PyPI
rfc3339Formats and parses dates according to RFC 3339,…
unclear · top 5,000 on PyPI
tonyg-rfc3339Parses and formats RFC 3339 date-time strings…
unclear · top 15,000 on PyPI
zope.datetimeParses and formats date/time strings in common…
unclear · top 15,000 on PyPI
pyRFC3339Parses and generates RFC 3339-compliant…
permissive · top 5,000 on PyPI
nanotimeNanotime provides a 64-bit UNIX timestamp type…
permissive · top 15,000 on PyPI
aniso8601Parses ISO 8601 date, time, datetime, duration,…
permissive · top 5,000 on PyPI