Documentation

Std.Time.Date.Unit.Week

Offset represents an offset in weeks.

Instances For
    @[instance_reducible]
    @[instance_reducible]
    @[instance_reducible]
    @[instance_reducible]
    @[instance_reducible]
    @[instance_reducible]
    @[instance_reducible]
    @[instance_reducible]
    @[instance_reducible]
    @[instance_reducible]

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

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

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

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

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

        Instances For
          @[inline]

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

          Instances For
            @[inline]

            Converts an Ordinal to an Offset.

            Instances For

              Ordinal represents the aligned week number within a month, ranging between 1 and 5. Aligned weeks are fixed 7-day slots counted from day 1 of the month: days 1-7 are week 1, days 8-14 are week 2, and so on, independent of which weekday starts the month.

              Instances For
                @[instance_reducible]

                Ordinal represents the number of weeks within a month, ranging between 1 and 6.

                Instances For
                  @[instance_reducible]
                  @[instance_reducible]
                  @[instance_reducible]
                  @[inline]

                  Creates an Offset from a natural number.

                  Instances For
                    @[inline]

                    Creates an Offset from an integer.

                    Instances For
                      @[inline]

                      Convert Week.Offset into Millisecond.Offset.

                      Instances For
                        @[inline]

                        Convert Millisecond.Offset into Week.Offset.

                        Instances For
                          @[inline]

                          Convert Week.Offset into Nanosecond.Offset.

                          Instances For
                            @[inline]

                            Convert Nanosecond.Offset into Week.Offset.

                            Instances For
                              @[inline]

                              Convert Week.Offset into Second.Offset.

                              Instances For
                                @[inline]

                                Convert Second.Offset into Week.Offset.

                                Instances For
                                  @[inline]

                                  Convert Week.Offset into Minute.Offset.

                                  Instances For
                                    @[inline]

                                    Convert Minute.Offset into Week.Offset.

                                    Instances For
                                      @[inline]

                                      Convert Week.Offset into Hour.Offset.

                                      Instances For
                                        @[inline]

                                        Convert Hour.Offset into Week.Offset.

                                        Instances For
                                          @[inline]

                                          Convert Week.Offset into Day.Offset.

                                          Instances For
                                            @[inline]

                                            Convert Day.Offset into Week.Offset.

                                            Instances For