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
      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
          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 : Day.Ordinal.OfYear leap) (idx : Month.Ordinal) (acc : Int) (h : ordinal.val > acc) (p : acc = (Month.Ordinal.cumulativeDays leap idx).val) :
                Equations
                  Instances For