Documentation

Time.Calendar.WeekDate

FirstWeekType

  • FirstWholeWeek - first week is the first whole week of the year
  • FirstMostWeek - first week is the first week with four days in the year
Instances For

    The number of days from b to the next a.

    Equations
    Instances For

      The first day-of-week on or after some day

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

          Convert to the given kind of "week calendar". Note that the year number matches the weeks, and so is not always the same as the Gregorian year number.

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

            Convert from the given kind of "week calendar". ws is the first day of each week. Invalid week and day values will be clipped to the correct range.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              Equations
              Instances For
                def Time.fromWeekDate (y : Int) (wy : Int) (dw : Int) :

                Convert from ISO 8601 Week Date format.

                • First argument is year,
                • second week number (1-52 or 53),
                • third day of week (1 for Monday to 7 for Sunday).

                Invalid week and day values will be clipped to the correct range.

                Equations
                Instances For
                  def Time.fromWeekDateValid (y : Int) (wy : Int) (dwr : Int) :

                  Convert from ISO 8601 Week Date format.

                  • First argument is year,
                  • second week number (1-52 or 53),
                  • third day of week (1 for Monday to 7 for Sunday).

                  Invalid week and day values will be clipped to the correct range.

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