Equations
- Std.Time.Week.instOrdinalBEq = Std.Time.Internal.Bounded.instBEq
Equations
- Std.Time.Week.instOrdinalLE = Std.Time.Internal.Bounded.instLE
Equations
- Std.Time.Week.instOrdinalLT = Std.Time.Internal.Bounded.instLT
Equations
- Std.Time.Week.instInhabitedOrdinal = { default := 1 }
Equations
- Std.Time.Week.instOffsetRepr = Std.Time.Internal.UnitVal.instRepr
Equations
- Std.Time.Week.instOffsetInhabited = Std.Time.Internal.instInhabitedUnitVal
Equations
- Std.Time.Week.instOffsetAdd = Std.Time.Internal.UnitVal.instAdd
Equations
- Std.Time.Week.instOffsetSub = Std.Time.Internal.UnitVal.instSub
Equations
- Std.Time.Week.instOffsetNeg = Std.Time.Internal.UnitVal.instNeg
Equations
- Std.Time.Week.instOffsetLE = Std.Time.Internal.UnitVal.instLE
Equations
- Std.Time.Week.instOfNatOffset = { ofNat := Std.Time.Internal.UnitVal.ofNat n }
OfMonth
represents the number of weeks within a month. It ensures that the week is within the
correct bounds—either 1 to 6, representing the possible weeks in a month.
Instances For
Equations
- Std.Time.Week.Ordinal.instOfMonthRepr = Std.Time.Internal.Bounded.instRepr
@[inline]
Creates an Offset
from a natural number.
Equations
- Std.Time.Week.Offset.ofNat data = { val := ↑data }
Instances For
@[inline]
Convert Week.Offset
into Millisecond.Offset
.
Equations
- weeks.toMilliseconds = Std.Time.Internal.UnitVal.mul weeks 604800000
Instances For
@[inline]
Convert Millisecond.Offset
into Week.Offset
.
Instances For
@[inline]
Convert Nanosecond.Offset
into Week.Offset
.
Equations
- Std.Time.Week.Offset.ofNanoseconds nanos = Std.Time.Internal.UnitVal.ediv nanos 604800000000000
Instances For
@[inline]
Convert Second.Offset
into Week.Offset
.
Equations
- Std.Time.Week.Offset.ofSeconds secs = Std.Time.Internal.UnitVal.ediv secs 604800
Instances For
@[inline]
Convert Week.Offset
into Minute.Offset
.
Equations
- weeks.toMinutes = Std.Time.Internal.UnitVal.mul weeks 10080
Instances For
@[inline]
Convert Week.Offset
into Hour.Offset
.
Equations
- weeks.toHours = Std.Time.Internal.UnitVal.mul weeks 168
Instances For
@[inline]
Convert Hour.Offset
into Week.Offset
.
Equations
- Std.Time.Week.Offset.ofHours hours = Std.Time.Internal.UnitVal.ediv hours 168
Instances For
@[inline]
Convert Week.Offset
into Day.Offset
.
Equations
- weeks.toDays = Std.Time.Internal.UnitVal.mul weeks 7