Ordinal
represents a nanosecond value that is bounded between 0 and 999,999,999 nanoseconds.
Equations
- Std.Time.Nanosecond.Ordinal = Std.Time.Internal.Bounded.LE 0 999999999
Instances For
Equations
- Std.Time.Nanosecond.instOfNatOrdinal = { ofNat := Std.Time.Internal.Bounded.LE.ofFin (Fin.ofNat' (Nat.succ 999999999) n) }
Equations
- Std.Time.Nanosecond.instInhabitedOrdinal = { default := 0 }
Equations
- Std.Time.Nanosecond.instDecidableLeOrdinal = inferInstanceAs (Decidable (x.val ≤ y.val))
Equations
- Std.Time.Nanosecond.instDecidableLtOrdinal = inferInstanceAs (Decidable (x.val < y.val))
Offset
represents a time offset in nanoseconds.
Equations
- Std.Time.Nanosecond.Offset = Std.Time.Internal.UnitVal (1 / 1000000000)
Instances For
Equations
- Std.Time.Nanosecond.instDecidableLeOffset = inferInstanceAs (Decidable (x.val ≤ y.val))
Equations
- Std.Time.Nanosecond.instOfNatOffset = { ofNat := Std.Time.Internal.UnitVal.ofNat n }
@[inline]
Creates an Offset
from a natural number.
Equations
- Std.Time.Nanosecond.Offset.ofNat data = { val := ↑data }
Instances For
@[inline]
Creates an Offset
from an integer.
Equations
- Std.Time.Nanosecond.Offset.ofInt data = { val := data }
Instances For
Span
represents a bounded value for nanoseconds, ranging between -999999999 and 999999999.
This can be used for operations that involve differences or adjustments within this range.
Equations
- Std.Time.Nanosecond.Span = Std.Time.Internal.Bounded.LE (-999999999) 999999999
Instances For
Ordinal
represents a bounded value for nanoseconds in a day, which ranges between 0 and 86400000000000.
Equations
- Std.Time.Nanosecond.Ordinal.OfDay = Std.Time.Internal.Bounded.LE 0 86400000000000
Instances For
@[inline]
Creates an Ordinal
from an integer, ensuring the value is within bounds.
Equations
Instances For
@[inline]
Creates an Ordinal
from a natural number, ensuring the value is within bounds.