strict-rfc3339 is a Python library providing strict, simple, and lightweight functions for converting Unix timestamps to and from RFC3339 formatted strings. It aims to avoid the complexities of timezones as much as possible, focusing on strict adherence to the RFC3339 standard. The current version is 0.7, with development appearing to be in maintenance mode, as the last release was in April 2016.
pip install strict-rfc3339Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to obtain the current time in RFC3339 format (UTC or local offset), validate an RFC3339 string, and convert between RFC3339 strings and Unix timestamps. It highlights the library's core functionalities for strict RFC3339 handling.
Be aware of this limitation; if leap second precision is critical, this library may not be suitable without external handling of leap seconds.
Consider this limitation when deploying on 32-bit systems or working with dates outside this range. For such cases, consider alternative libraries or custom handling.
Understand that the library focuses purely on RFC3339 string parsing and generation based on Unix timestamps, not complex timezone arithmetic. If full timezone support beyond RFC3339 offsets is needed, integrate with a dedicated timezone library, ensuring careful handling of conversions.
No dependency data recorded yet.