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
    • Std.Time.instInhabitedValidDate = { default := (1, 1), }

    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.
    Instances For

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

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