Skip to content

SecondsOfWeek

Defined in: gps.rs:74

pub struct SecondsOfWeek

Seconds elapsed since the start of the GPS week (Sunday 00:00:00), in the half-open range [0, 604800). GPS Time has no leap seconds, so this is uniform within a week.

fn new(sow: f64) -> Option<Self>

Range-checked constructor. Returns None unless sow ∈ [0, 604800) (matching the Option-returning style of Epoch::<Utc>::from_iso8601: the caller decides how to handle out-of-range telemetry).


const fn get(self) -> f64

The seconds-of-week value.