hzc-666-ai/moonseis/time does not have a README file

    Time

    pub(all) struct Time {
    ns : Int64
    } derive(Eq,
    Debug
    )

    Absolute time stored as nanoseconds since the Unix epoch (1970-01-01 UTC).

    Time::add_ns

    fn Time::add_ns(self : Time, delta : Int64) -> Time

    Time::diff_secs

    fn Time::diff_secs(self : Time, other : Time) -> Double

    Time::from_epoch_ns

    fn Time::from_epoch_ns(ns : Int64) -> Time

    Time::from_header

    fn Time::from_header(nanos : UInt, year : Int, doy : Int, hour : Int, min : Int, sec : Int) -> Time?

    Construct from miniSEED header parts (nanos, year, day-of-year, h:m:s). sec == 60 is a positive leap second, clamped to 59.

    Time::to_epoch_ns

    fn Time::to_epoch_ns(self : Time) -> Int64

    Time::to_iso8601

    fn Time::to_iso8601(self : Time) -> String

    ISO8601 with microsecond precision, UTC: 2026-08-17T08:30:15.123000Z.

    Source Files