Documentation

Time.Calendar.OrdinalDate

inductive Time.DayOfYear :
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    instance Time.instCoeIccOfNat :
    Coe (Time.Icc 1 365) (Time.Icc 1 366)
    Equations
    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.ext {x y : Time.OrdinalDate} (year : x.year = y.year) (dayOfYear : x.dayOfYear = y.dayOfYear) :
        x = y
        Equations
        Equations
        • One or more equations did not get rendered due to their size.
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem Time.year_emod_4_zero {qc cent q : Int} (year : Int) (h : year = qc * 400 + cent * 100 + q * 4 + 4) :
          year % 4 = 0
          theorem Time.year_emod_400_zero {qc cent 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 cent 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 cent q 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
            def Time.toModifiedJulianDay (year : Int) (dayOfYear : Nat) :
            Equations
            Instances For
              theorem Time.ite_ge {α : Type} (f : αBool) (v : α) (a b c : Nat) (h₁ : c a) (h₂ : c b) :
              c if f v = true then a else b
              def Time.clipDayOfYear (b : Time.YearBase) (year dayOfYear : Int) :
              Equations
              Instances For
                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.

                    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