Hightime
Overview
Hightime allows for up to yoctosecond precision replacements for the datetime datetime and timedelta types.
Installation
Hightime can be installed by cloning the master branch and then in a command line in the directory of setup.py run:
pip install --pre .
Or by installing from PyPI using:
pip install hightime
Examples
>>> from hightime import datetime
>>> from hightime import timedelta
>>> high_noon = datetime(
... year=1952,
... month=7,
... day=24,
... hour=12,
... minute=0,
... second=30,
... microsecond=0,
... )
>>> print(high_noon)
1952-07-24 12:00:30
>>> hesitation = timedelta(microseconds=10, femtoseconds=203456)
>>> print(hesitation)
0:00:00.000010000203456
>>> reaction = high_noon + hesitation
>>> print(reaction)
1952-07-24 12:00:30.000010000203456
>>> print(high_noon + high_noon)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'datetime' and 'datetime'
>>> print(hesitation * 2)
0:00:00.000020000406912
See the readthedocs page for more detailed examples and documentation.
License
Hightime is licensed under an MIT-style license.
See LICENSE for details about how hightime is licensed.
Other incorporated projects may be licensed under different licenses. All licenses allow for non-commercial and commercial use.
Release files for hightime 1.0.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 | |
|---|---|---|---|
| hightime-1.0.0.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hightime-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.0 kB
Release files / hightime-1.0.0.tar.gz
| Download URL | hightime-1.0.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
480d2a03e2c3ed44916d2406d40ab6d10a276ed7f101619fc3fcc1e00c46aacf
|
|
BLAKE2b-256 checksum How to use checksums |
25373466f0022ea7879f48c35b7869b83ccc76ed365f2e12f4cf48555252d76a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 2, 2025.
Transparency logRelease files / hightime-1.0.0-py3-none-any.whl
| Download URL | hightime-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba86d42976c36451b14e11c736e61f296f9f00dbb79c8488e18d70c6b2dbb395
|
|
BLAKE2b-256 checksum How to use checksums |
0af93b018f6eec88a35f3cce2103015cb1918b66cc8316ff5c2510ff1c19cb26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 2, 2025.
Transparency log