Documentation

Std.Time.Time.Unit.Hour

Ordinal represents a bounded value for hours, ranging from 0 to 23.

Equations
Instances For

    Offset represents an offset in hours, defined as an Int. This can be used to express durations or differences in hours.

    Instances For
      Equations
      Equations
      Equations
      Equations
      @[inline]
      def Std.Time.Hour.Ordinal.ofInt (data : Int) (h : 0 data data 23) :

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

      Equations
      Instances For

        Converts an Ordinal into a relative hour in the range of 1 to 12.

        Equations
        Instances For

          Converts an Ordinal into a 1-based hour representation within the range of 1 to 24.

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

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

            Instances For
              @[inline]

              Creates an Ordinal from a Fin value.

              Instances For
                @[inline]

                Converts an Ordinal to an Offset, which represents the duration in hours as an integer value.

                Instances For
                  @[inline]

                  Creates an Offset from a natural number.

                  Equations
                  Instances For
                    @[inline]

                    Creates an Offset from an integer.

                    Equations
                    Instances For