Documentation

Std.Time.Date.Unit.Week

Ordinal represents a bounded value for weeks, which ranges between 1 and 53.

Equations
Instances For
    Equations
    Equations
    Equations

    Offset represents an offset in weeks.

    Equations
    Instances For
      Equations
      Equations
      Equations
      Equations
      Equations
      Equations
      @[inline]
      def Std.Time.Week.Ordinal.ofInt (data : Int) (h : 1 data data 53) :

      Creates an Ordinal from an integer, ensuring the value is within bounds.

      Equations
      Instances For

        OfMonth represents the number of weeks within a month. It ensures that the week is within the correct bounds—either 1 to 6, representing the possible weeks in a month.

        Equations
        Instances For
          @[inline]
          def Std.Time.Week.Ordinal.ofNat (data : Nat) (h : data 1 data 53 := by decide) :

          Creates an Ordinal from a natural number, ensuring the value is within bounds.

          Equations
          Instances For
            @[inline]

            Creates an Ordinal from a Fin, ensuring the value is within bounds.

            Equations
            Instances For
              @[inline]

              Converts an Ordinal to an Offset.

              Equations
              • ordinal.toOffset = { val := ordinal.val }
              Instances For
                @[inline]

                Creates an Offset from a natural number.

                Equations
                Instances For
                  @[inline]

                  Creates an Offset from an integer.

                  Equations
                  Instances For
                    @[inline]

                    Convert Week.Offset into Millisecond.Offset.

                    Equations
                    Instances For
                      @[inline]

                      Convert Week.Offset into Nanosecond.Offset.

                      Equations
                      Instances For
                        @[inline]

                        Convert Week.Offset into Second.Offset.

                        Equations
                        Instances For
                          @[inline]

                          Convert Week.Offset into Minute.Offset.

                          Equations
                          Instances For
                            @[inline]

                            Convert Week.Offset into Hour.Offset.

                            Equations
                            Instances For
                              @[inline]

                              Convert Week.Offset into Day.Offset.

                              Equations
                              Instances For