A pure Python implementation of LIGOTimeGPS, used for converting between LIGO time (GPS seconds) and standard time formats. Current version is 2.1.0, requiring Python >=3.11. Released irregularly with minor version bumps.
pip install ligotimegpsVerified import paths — ran on the pinned version, not inferred.
Create a LIGOTimeGPS object from GPS seconds and nanoseconds, then print its string representation, float value, and components.
Ensure nanoseconds are normalized (0 <= ns < 1e9) before passing to the constructor, or use the from_float method.
Use explicit conversion to float for comparisons and arithmetic.
Always convert to float for comparisons: float(t) > 1e9.
Run 'pip show ligotimegps' to verify installation. Import using 'from ligotimegps import LIGOTimeGPS'.
Convert to int or float: int(t.gpsSeconds) or float(t).
Use LIGOTimeGPS.from_float(1234567890.0) or parse the string yourself.
No dependency data recorded yet.