Duration
このコンテンツはまだ日本語訳がありません。
Defined in: epoch.rs:746
pub struct DurationScale-invariant duration measured in SI (TAI) seconds.
Does not carry a scale tag because SI seconds tick uniformly regardless of
the reference time scale. UTC display arithmetic (e.g. “翌日同時刻”) is NOT
provided — use Epoch::<Utc>::add_si_seconds which correctly handles leap
second boundaries.
Methods
Section titled “Methods”from_si_seconds()
Section titled “from_si_seconds()”const fn from_si_seconds(s: f64) -> Self
Construct from SI seconds.
from_minutes()
Section titled “from_minutes()”const fn from_minutes(m: f64) -> Self
Construct from minutes (= 60 SI seconds).
from_hours()
Section titled “from_hours()”const fn from_hours(h: f64) -> Self
Construct from hours (= 3600 SI seconds).
as_si_seconds()
Section titled “as_si_seconds()”fn as_si_seconds(&self) -> f64
Return the duration in SI seconds.