Ordinal
represents a bounded value for minutes, ranging from 0 to 59. This is useful for representing the minute component of a time.
Equations
Instances For
Equations
- Std.Time.Minute.instOfNatOrdinal = inferInstanceAs (OfNat (Std.Time.Internal.Bounded.LE 0 (0 + ↑59)) n)
Equations
- Std.Time.Minute.instInhabitedOrdinal = { default := 0 }
Equations
- Std.Time.Minute.instDecidableLeOrdinal = inferInstanceAs (Decidable (x.val ≤ y.val))
Equations
- Std.Time.Minute.instDecidableLtOrdinal = inferInstanceAs (Decidable (x.val < y.val))
Equations
- Std.Time.Minute.instOfNatOffset = { ofNat := { val := Int.ofNat n } }
@[inline]
Creates an Ordinal
from an integer, ensuring the value is within bounds.
Equations
- Std.Time.Minute.Ordinal.ofInt data h = Std.Time.Internal.Bounded.LE.mk data h
Instances For
@[inline]
Creates an Ordinal
from a natural number, ensuring the value is within bounds.
Equations
- Std.Time.Minute.Ordinal.ofNat data h = Std.Time.Internal.Bounded.LE.ofNat data h
Instances For
@[inline]
Creates an Offset
from a natural number.
Equations
- Std.Time.Minute.Offset.ofNat data = { val := ↑data }
Instances For
@[inline]
Creates an Offset
from an integer.
Equations
- Std.Time.Minute.Offset.ofInt data = { val := data }