Hifitime is a high-precision time and date library for Python, built on top of the Rust `hifitime` crate. It provides nanosecond-level precision, support for time scales (TAI, UTC, TT, etc.), durations, and astronomical time functions. Current version is 4.3.0, requiring Python >=3.9. Releases are frequent, with semver updates.
pip install hifitimeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: create an epoch, perform time arithmetic, and convert to string.
Use `Epoch.from_gregorian_str(s, TimeScale.UTC)` or pass the time scale parameter.
Update to use new API: e.g., `epoch.to_tai_seconds()`. Refer to the migration guide.
Keep hifitime updated to the latest version to ensure correct leap second handling.
Use `TimeScale.GPST` instead of `TimeScale.GPS`.
Use `from hifitime import Epoch` instead.
Use `TimeScale.GPST` instead of `TimeScale.GPS`.
Use `epoch.to_gregorian_str()` or convert via seconds: `datetime.utcfromtimestamp(epoch.to_unix_seconds())`.
No dependency data recorded yet.