Equations
- Std.Time.Month.instOrdinalBEq = Std.Time.Internal.Bounded.instBEq
Equations
- Std.Time.Month.instDecidableLeOrdinal = inferInstanceAs (Decidable (x.val ≤ y.val))
Equations
- Std.Time.Month.instOffsetBEq = instBEqOfDecidableEq
Quarter
represents a value between 1 and 4, inclusive, corresponding to the four quarters of a year.
Equations
Instances For
Determine the Quarter
by the month.
Instances For
The ordinal value representing the month of January.
Instances For
The ordinal value representing the month of February.
Equations
Instances For
The ordinal value representing the month of March.
Instances For
The ordinal value representing the month of April.
Instances For
The ordinal value representing the month of May.
Equations
Instances For
The ordinal value representing the month of June.
Equations
Instances For
The ordinal value representing the month of July.
Instances For
The ordinal value representing the month of August.
Equations
Instances For
The ordinal value representing the month of September.
Equations
Instances For
The ordinal value representing the month of October.
Equations
Instances For
The ordinal value representing the month of November.
Instances For
The ordinal value representing the month of December.
Equations
Instances For
Transforms Month.Ordinal
into Second.Offset
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Transforms Month.Ordinal
into Minute.Offset
.
Equations
- Std.Time.Month.Ordinal.toMinutes leap month = Std.Time.Internal.UnitVal.ediv (Std.Time.Month.Ordinal.toSeconds leap month) 60
Instances For
Transforms Month.Ordinal
into Hour.Offset
.
Equations
- Std.Time.Month.Ordinal.toHours leap month = Std.Time.Internal.UnitVal.ediv (Std.Time.Month.Ordinal.toMinutes leap month) 60
Instances For
Transforms Month.Ordinal
into Day.Offset
.
Equations
- Std.Time.Month.Ordinal.toDays leap month = Std.Time.Internal.UnitVal.convert (Std.Time.Month.Ordinal.toSeconds leap month)
Instances For
Gets the number of days in a month.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Returns the number of days until the month
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Checks if a given day is valid for the specified month and year. For example, 29/02
is valid only
if the year is a leap year.
Equations
- Std.Time.Month.Ordinal.Valid leap month day = (day.val ≤ (Std.Time.Month.Ordinal.days leap month).val)
Instances For
Clips the day to be within the valid range.
Equations
- Std.Time.Month.Ordinal.clipDay leap month day = if day.val > (Std.Time.Month.Ordinal.days leap month).val then Std.Time.Month.Ordinal.days leap month else day
Instances For
Proves that every value provided by a clipDay is a valid day in a year.