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.instOrdinalRepr = Std.Time.Internal.Bounded.instRepr
Equations
- Std.Time.Minute.instOrdinalBEq = Std.Time.Internal.Bounded.instBEq
Equations
- Std.Time.Minute.instOrdinalLE = Std.Time.Internal.Bounded.instLE
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.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.instOffsetRepr = Std.Time.Internal.UnitVal.instRepr
Equations
- Std.Time.Minute.instOffsetBEq = Std.Time.Internal.instBEqUnitVal
Equations
- Std.Time.Minute.instOffsetInhabited = Std.Time.Internal.instInhabitedUnitVal
Equations
- Std.Time.Minute.instOffsetAdd = Std.Time.Internal.UnitVal.instAdd
Equations
- Std.Time.Minute.instOffsetSub = Std.Time.Internal.UnitVal.instSub
Equations
- Std.Time.Minute.instOffsetNeg = Std.Time.Internal.UnitVal.instNeg
Equations
- Std.Time.Minute.instOffsetToString = Std.Time.Internal.UnitVal.instToString
@[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 }