Documentation

Std.Time.Time.Unit.Second

Ordinal represents a bounded value for second, which ranges between 0 and 59 or 60. This accounts for potential leap second.

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

    Offset represents an offset in seconds. It is defined as an Int.

    Instances For
      Equations
      @[inline]

      Creates an Second.Offset from a natural number.

      Equations
      Instances For
        @[inline]

        Creates an Second.Offset from an integer.

        Instances For
          @[inline]
          def Std.Time.Second.Ordinal.ofInt {leap : Bool} (data : Int) (h : 0 data data Int.ofNat (if leap = true then 60 else 59)) :

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

          Instances For
            @[inline]
            def Std.Time.Second.Ordinal.ofNat {leap : Bool} (data : Nat) (h : data if leap = true then 60 else 59) :

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

            Instances For
              @[inline]
              def Std.Time.Second.Ordinal.ofFin {leap : Bool} (data : Fin (if leap = true then 61 else 60)) :

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

              Instances For
                @[inline]

                Converts an Ordinal to an Second.Offset.

                Equations
                • ordinal.toOffset = { val := ordinal.val }
                Instances For