Documentation

Std.Time.Date.ValidDate

Represents a valid date for a given year, considering whether it is a leap year. Example: (2, 29) is valid only if leap is true.

Equations
Instances For
Equations
instance Std.Time.instOrdValidDate {leap : Bool} :
Ord (ValidDate leap)
Equations

Transforms a tuple of a Month and a Day into a Day.Ordinal.OfYear.

Equations
  • One or more equations did not get rendered due to their size.

Transforms a Day.Ordinal.OfYear into a tuple of a Month and a Day.

Equations
@[irreducible]
def Std.Time.ValidDate.ofOrdinal.go {leap : Bool} (ordinal : Day.Ordinal.OfYear leap) (idx : Month.Ordinal) (acc : Int) (h : ordinal.val > acc) (p : acc = (Month.Ordinal.cumulativeDays leap idx).val) :
Equations
  • One or more equations did not get rendered due to their size.