Opinionated wrapper over the built-in datetime module. Exposes a subset of just the right functionality to avoid common gotchas with dates in Python.
Yo, these datetimes are sick!
~anonymous
Features
Robust, automated timezone handling.
ISO 8601-compliant timestamp strings.
Unix epoch seconds.
Only depends on Python standard library.
Uses built-in data types: datetime, float, str.
Driving Principles
A datetime object represents an instant, a particular point in time. A snapshot of the universe. It doesn’t matter what was the timezone, DST mode, the user’s calendar, nor their locale.
A datetime on its own isn’t human-readable. If you need to show it to the user, you need to provide the timezone or locale.
All datetime objects must be timezone-aware.
When in need of string timestamps, use ISO 8601 with milliseconds and Zulu time.
When in need of numerical timestamps, use a float for UNIX epoch seconds in UTC.
This must be easy to integrate with existing codebase. No custom data types over stdlib.
Inspired by the design choices of NSDate.
Similar Projects
Arrow. Requires a total buy-in, you have to switch to using their datatypes.
Metadata
Release files for sickdt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sickdt-0.1.0.tar.gz | 6.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sickdt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / sickdt-0.1.0.tar.gz
| Download URL | sickdt-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa103c47cd6042c612ea7c24c76554b6cd528c6ef988365b3fee37a3f7435d9a
|
|
BLAKE2b-256 checksum How to use checksums |
336b828d1a22958a0ff5c59a1cc0406e1a9457e233e87ea7951126c42805af49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / sickdt-0.1.0-py3-none-any.whl
| Download URL | sickdt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f81a05541dcea327ad4058cff5eefd175d25f3cefa611443b3d28c96368ea86
|
|
BLAKE2b-256 checksum How to use checksums |
79499325b955c051e9d998e92b2d41d02c342357b59987847b46be7d72a9a84d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Security for sickdt 0.1.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.