Documentation

Time.Calendar.Gregorian

Convert to proleptic Gregorian calendar.

Equations
Instances For

    Convert from proleptic Gregorian calendar.

    Equations
    Instances For
      def Time.fromGregorian (year : Int) (month : Int) (day : Int) :

      Convert from proleptic Gregorian calendar. Invalid values will be clipped to the correct range, month first, then day.

      Equations
      Instances For
        def Time.fromGregorianValid (year : Int) (month : Int) (day : Int) :

        Convert from proleptic Gregorian calendar. Invalid values give result none.

        Equations
        Instances For
          def Time.Gregorian.monthLength (year : Int) (month : Int) :

          The number of days in a given month according to the proleptic Gregorian calendar.

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

            Add months, with days past the last day of the month clipped to the last day. For instance, 2005-01-30 + 1 month = 2005-02-28.

            Equations
            Instances For

              Add months, with days past the last day of the month rolling over to the next month. For instance, 2005-01-30 + 1 month = 2005-03-02.

              Equations
              Instances For

                Add years, matching month and day, with Feb 29th clipped to Feb 28th if necessary. For instance, 2004-02-29 + 2 years = 2006-02-28.

                Equations
                Instances For

                  Add years, matching month and day, with Feb 29th rolled over to Mar 1st if necessary. -- For instance, 2004-02-29 + 2 years = 2006-03-01.

                  Equations
                  Instances For

                    Add months (clipped to last day), then add days

                    Equations
                    Instances For

                      Add months (rolling over to next month), then add days

                      Equations
                      Instances For

                        Calendrical difference, with as many whole months as possible

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

                          Calendrical difference, with as many whole months as possible.

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