View Source SpaceDust.Time.TAI (Space Dust v0.3.0)
International Atomic Time (TAI - Temps Atomique International).
TAI is a continuous time scale based on atomic clocks. Unlike UTC, TAI does not include leap seconds, making it ideal for precise scientific calculations.
TAI = UTC + leap_seconds
Internally stores time as fractional seconds since a TAI reference epoch (equivalent to Unix epoch in TAI scale).
Summary
Functions
Add seconds to TAI time.
Difference between two TAI times in seconds.
Create TAI from Julian Date (in TAI scale).
Create from Nx tensor.
Create a TAI time from TAI seconds (since TAI epoch corresponding to Unix epoch).
Convert TAI to Julian Date. Note: This is the Julian Date in the TAI time scale.
Get the TAI seconds value.
Convert to Nx tensor.
Types
@type t() :: %SpaceDust.Time.TAI{tai_seconds: float()}
Functions
Add seconds to TAI time.
Difference between two TAI times in seconds.
Create TAI from Julian Date (in TAI scale).
@spec from_tensor(Nx.Tensor.t()) :: t()
Create from Nx tensor.
Create a TAI time from TAI seconds (since TAI epoch corresponding to Unix epoch).
Convert TAI to Julian Date. Note: This is the Julian Date in the TAI time scale.
Get the TAI seconds value.
@spec to_tensor(t()) :: Nx.Tensor.t()
Convert to Nx tensor.