Skip to main content

Module constants

Module constants 

Source
Expand description

Fundamental constants for time-scale conversions, relativistic corrections, and astronomical calculations.

Constants§

ATTOS_PER_DAY
ATTOS_PER_FS
Attoseconds per femtosecond (10⁻¹⁵ s).
ATTOS_PER_FS_I128
Attoseconds per femtosecond (10⁻¹⁵ s).
ATTOS_PER_HALF_DAY
ATTOS_PER_HALF_DAYU
ATTOS_PER_MS
Attoseconds per millisecond (10⁻³ s).
ATTOS_PER_MS_I128
Attoseconds per millisecond (10⁻³ s).
ATTOS_PER_NS
Attoseconds per nanosecond (10⁻⁹ s).
ATTOS_PER_NS_I128
Attoseconds per nanosecond (10⁻⁹ s).
ATTOS_PER_PS
Attoseconds per picosecond (10⁻¹² s).
ATTOS_PER_PS_I128
Attoseconds per picosecond (10⁻¹² s).
ATTOS_PER_SEC
Attoseconds per second.
ATTOS_PER_SECF
ATTOS_PER_SEC_I128
ATTOS_PER_SEC_U128
ATTOS_PER_US
Attoseconds per microsecond (10⁻⁶ s).
ATTOS_PER_US_I128
Attoseconds per microsecond (10⁻⁶ s).
C
Speed of light in m/s (SI definition)
C_SQUARED
Speed of light squared (c²) in m² s⁻².
GM_SUN
Solar gravitational parameter GM☉ in m³ s⁻²
(nominal value from IAU 2015 Resolution B3)
GM_SUN_OVER_C3
GM☉ / c³ in seconds (from GM_SUN and C — used in Shapiro delay)
JD_2000_2_451_545
Julian Date of the J2000.0 epoch.
JD_2000_2_451_545F
MJD_1970
MJD 40587.0 = 1970-01-01 00:00:00 UTC
PLANCK_LENGTH
PLANCK_LENGTH_4
SEC_PER_DAYI64
SEC_PER_DAY_F
86,400 seconds in one standard Earth day
(24 hours × 60 minutes × 60 seconds).
STRFTIME_SIZE
TAI_SEC_AT_1972
Number of TAI seconds backwards from noon 2000-01-01 to midnight 1972-01-01
TT_TAI_OFFSET
Helper that returns the TT–TAI offset as a Dt.
TWO_GM_SUN_OVER_C3
2GM☉ / c³ — the standard prefactor in the one-way Shapiro delay formula