Documentation

Time.Calendar.OrdinalDate

inductive Time.DayOfYear :
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Equations
    def Time.isLeapYear (year : Int) :

    Is this year a leap year according to the proleptic Gregorian calendar?

    Equations
    Instances For

      ISO 8601 Ordinal Date

      Instances For
        theorem Time.OrdinalDate.isValid (self : Time.OrdinalDate) :
        match self.dayOfYear with | Time.DayOfYear.common a => Time.isLeapYear self.year = false | Time.DayOfYear.leap a => Time.isLeapYear self.year = true
        Equations
        def Time.dayOfYear (dayOfYear : Time.DayOfYear) :
        Equations
        Instances For
          theorem Time.year_emod_4_zero {qc : Int} {cent : Int} {q : Int} (year : Int) (h : year = qc * 400 + cent * 100 + q * 4 + 4) :
          year % 4 = 0
          theorem Time.year_emod_400_zero {qc : Int} {cent : Int} {q : Int} (year : Int) (h1 : year = qc * 400 + cent * 100 + q * 4 + 4) (h2 : q = 24) (h3 : cent = 3) :
          year % 400 = 0
          theorem Time.year_emod_100_non_zero {qc : Int} {cent : Int} {q : Int} (year : Int) (h1 : year = qc * 400 + cent * 100 + q * 4 + 4) (hle : 0 q) (h2 : q < 24) :
          year % 100 0
          theorem Time.isLeapYear_of_sum {qc : Int} {cent : Int} {q : Int} (year : Int) (h1 : year = qc * 400 + cent * 100 + q * 4 + 4) (hle : 0 q) (h2 : q 24) (h3 : q = 24cent = 3) :

          from modified Julian day to year and day of year

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem Time.ite_ge {α : Type} (f : αBool) (v : α) (a : Nat) (b : Nat) (c : Nat) (h₁ : c a) (h₂ : c b) :
            c if f v = true then a else b
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Convert from ISO 8601 Ordinal Date format. Invalid day numbers will be clipped to the correct range (1 to 365 or 366).

              Equations
              Instances For

                Convert from ISO 8601 Ordinal Date format. Invalid day numbers will be clipped to the correct range (1 to 365 or 366).

                Equations
                Instances For

                  Convert from ISO 8601 Ordinal Date format.

                  Equations
                  Instances For

                    The inverse of 'mondayStartWeek'. Get a 'Day' given the year, the number of the Monday-starting week, and the day of the week. The first Monday is the first day of week 1, any earlier days in the year are week 0 (as @%W@ in 'Data.Time.Format.formatTime').

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

                      The inverse of 'sundayStartWeek'. Get a 'Day' given the year and the number of the day of a Sunday-starting week. The first Sunday is the first day of week 1, any earlier days in the year are week 0 (as @%U@ in 'Data.Time.Format.formatTime').

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