Equations
- Std.Time.Hour.instOrdinalRepr = Std.Time.Internal.Bounded.instRepr
Equations
- Std.Time.Hour.instOrdinalLE = Std.Time.Internal.Bounded.instLE
Equations
- Std.Time.Hour.instOrdinalLT = Std.Time.Internal.Bounded.instLT
Equations
- Std.Time.Hour.instInhabitedOrdinal = { default := 0 }
Equations
- Std.Time.Hour.instOffsetBEq = Std.Time.Internal.instBEqUnitVal
Equations
- Std.Time.Hour.instOffsetAdd = Std.Time.Internal.UnitVal.instAdd
Equations
- Std.Time.Hour.instOffsetSub = Std.Time.Internal.UnitVal.instSub
Equations
- Std.Time.Hour.instOffsetNeg = Std.Time.Internal.UnitVal.instNeg
Equations
- Std.Time.Hour.instOffsetToString = Std.Time.Internal.UnitVal.instToString
Equations
- Std.Time.Hour.instOfNatOffset = { ofNat := Std.Time.Internal.UnitVal.ofNat n }
@[inline]
Creates an Ordinal
from an integer, ensuring the value is within bounds.
Equations
- Std.Time.Hour.Ordinal.ofInt data h = Std.Time.Internal.Bounded.LE.mk data h
Instances For
Converts an Ordinal
into a relative hour in the range of 1 to 12.
Equations
- ordinal.toRelative = ((Std.Time.Internal.Bounded.LE.add ordinal 11).emod 12 Std.Time.Hour.Ordinal.toRelative.proof_1).add 1
Instances For
Converts an Ordinal into a 1-based hour representation within the range of 1 to 24.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
Creates an Ordinal
from a natural number, ensuring the value is within the valid bounds for hours.
Instances For
@[inline]
Creates an Offset
from a natural number.
Equations
- Std.Time.Hour.Offset.ofNat data = { val := ↑data }
Instances For
@[inline]
Creates an Offset
from an integer.
Equations
- Std.Time.Hour.Offset.ofInt data = { val := data }