Hightime is a Python library from National Instruments designed for representing and manipulating durations and time intervals with high precision. It provides classes like `Interval` and `Unit` to define time quantities, enabling arithmetic operations and conversions between different units. The current stable version is 1.0.0, which includes significant improvements in Python version compatibility and type hinting. Releases appear to be driven by feature additions and Python version updates rather than a fixed schedule.
pip install hightimeVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create `Interval` objects, perform basic arithmetic, and convert intervals between different `Unit` types. It also shows how to retrieve precise total seconds.
Upgrade your Python environment to 3.9 or newer (e.g., Python 3.9-3.13 are supported by v1.0.0).
Upgrade to `hightime` version 1.0.0 or newer to resolve the infinite recursion issue on PyPy.
Ensure you are using `hightime` version 1.0.0 or newer. When comparing `Interval` objects, ensure the other operand is also a `hightime.Interval` or a type explicitly supported for comparison.
Use `interval.precision_total_seconds` (available from v0.2.2) for the most accurate representation of an interval's total duration in seconds.
No dependency data recorded yet.