Documentation

Std.Time.Date.Unit.Weekday

Defines the enumeration for days of the week. Each variant corresponds to a day of the week.

Instances For
    @[implicit_reducible]
    @[implicit_reducible]

    Ordinal represents a bounded value for weekdays, which ranges between 1 and 7.

    Instances For
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]

      Converts a Ordinal representing a day index into a corresponding Weekday. This function is useful for mapping numerical representations to days of the week.

      Instances For

        Converts a Weekday to a Ordinal.

        Instances For
          @[implicit_reducible]

          Converts a Weekday to a Nat.

          Instances For

            Converts a Nat to an Option Weekday.

            Instances For
              @[inline]

              Converts a Nat to a Weekday. Panics if the value provided is invalid.

              Instances For

                Gets the next Weekday.

                Instances For

                  Check if it's a weekend.

                  Instances For