Skip to main content

Module consts

Module consts 

Source
Expand description

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

Constants§

ATTOS_DIGITS
Number of decimal digits in one attosecond-precision second (10¹⁸).
ATTOS_PER_DAY
Attoseconds in one standard Earth day.
ATTOS_PER_FS_I128
Attoseconds per femtosecond (10⁻¹⁵ s).
ATTOS_PER_HALF_DAY
Attoseconds in half a standard Earth day (12 hours).
ATTOS_PER_HALF_DAY_U128
Attoseconds in half a standard Earth day, as u128.
ATTOS_PER_HOUR
Attoseconds in one hour.
ATTOS_PER_MIN
Attoseconds in one minute.
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_I128
Attoseconds per picosecond (10⁻¹² s).
ATTOS_PER_SEC
Attoseconds per second.
ATTOS_PER_SECF
Attoseconds per second as a floating-point value.
ATTOS_PER_SEC_I128
Attoseconds per second as i128.
ATTOS_PER_SEC_U128
Attoseconds per second as u128.
ATTOS_PER_US_I128
Attoseconds per microsecond (10⁻⁶ s).
ATTOS_PER_WEEK
Attoseconds in one GPS week.
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 2451545.0).
JD_2000_2_451_545F
Julian Date of the J2000.0 epoch as a floating-point value.
JD_2000_2_451_545_I128
Julian Date of the J2000.0 epoch as i128.
MJD_1970
Modified Julian Date of the Unix epoch (MJD 40587.0 = 1970-01-01 00:00:00 UTC).
PLANCK_LENGTH
Planck length ℓ_Pl in meters (standard value).
PLANCK_LENGTH_4
Planck length to the fourth power (ℓ_Pl⁴) in m⁴.
SEC_PER_DAY
Seconds in one standard Earth day (24 × 60 × 60).
SEC_PER_DAY_F
86,400 seconds in one standard Earth day (24 hours × 60 minutes × 60 seconds).
SEC_PER_DAY_I64
86,400 seconds in one standard Earth day (24 hours × 60 minutes × 60 seconds).
SEC_PER_HOUR
Seconds in one hour.
SEC_PER_MIN
Seconds in one minute.
SEC_PER_MONTH
Seconds in one average month (30.4375 days × 86_400).
SEC_PER_WEEK
Seconds in one GPS week (7 days).
SEC_PER_YEAR
Seconds in one Julian year (365.25 days × 86_400).
STRTIME_SIZE
The size limit for parsing and no-alloc formatting with the strtime related functionality.
TAI_ATTOS_AT_1972
Number of TAI attoseconds from noon 2000-01-01 back to midnight 1972-01-01.
TAI_SEC_1970_MIDNIGHT_TO_2000_NOON
TAI seconds from 1970-01-01 midnight to 2000-01-01 noon.
TT_TAI_OFFSET
TT–TAI offset of 32.184 s as a Dt.
TT_TAI_OFFSET_ATTOS
Fractional part of the TT–TAI offset (0.184 s) as attoseconds.
TWO_GM_SUN_OVER_C3
2GM☉ / c³ — the standard prefactor in the one-way Shapiro delay formula