Documentation

Std.Time.Time.Unit.Minute

Ordinal represents a bounded value for minutes, ranging from 0 to 59. This is useful for representing the minute component of a time.

Equations
Instances For
    Equations
    Equations
    Equations

    Offset represents a duration offset in minutes.

    Equations
    Instances For
      Equations
      • Std.Time.Minute.instOfNatOffset = { ofNat := { val := Int.ofNat n } }
      @[inline]

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

      Equations
      Instances For
        @[inline]

        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