Ordinal
represents a bounded value for minutes, ranging from 0 to 59. This is useful for representing the minute component of a time.
Instances For
Equations
- Std.Time.Minute.instOrdinalBEq = Std.Time.Internal.Bounded.instBEq
Equations
- Std.Time.Minute.instOrdinalLT = Std.Time.Internal.Bounded.instLT
Equations
- Std.Time.Minute.instOfNatOrdinal = inferInstanceAs (OfNat (Std.Time.Internal.Bounded.LE 0 (0 + ↑59)) n)
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.instOffsetSub = Std.Time.Internal.UnitVal.instSub
Equations
- Std.Time.Minute.instOffsetNeg = Std.Time.Internal.UnitVal.instNeg
@[inline]
Creates an Ordinal
from a natural number, ensuring the value is within bounds.
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 }