TorchLean API

Std.Time.Time.Unit.Nanosecond

Ordinal represents a nanosecond value that is bounded between 0 and 999,999,999 nanoseconds.

Instances For
    @[implicit_reducible]
    @[implicit_reducible]
    @[implicit_reducible]
    @[implicit_reducible]
    @[implicit_reducible]
    @[implicit_reducible]

    Offset represents a time offset in nanoseconds.

    Instances For
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[inline]

      Creates an Offset from a natural number.

      Instances For
        @[inline]

        Creates an Offset from an integer.

        Instances For

          Span represents a bounded value for nanoseconds, ranging between -999999999 and 999999999. This can be used for operations that involve differences or adjustments within this range.

          Instances For
            @[implicit_reducible]
            @[implicit_reducible]
            @[implicit_reducible]
            @[implicit_reducible]
            @[implicit_reducible]
            @[implicit_reducible]

            Creates a new Offset out of a Span.

            Instances For

              Ordinal represents a bounded value for nanoseconds in a day, which ranges between 0 and 86400000000000.

              Instances For
                @[implicit_reducible]
                @[implicit_reducible]
                @[inline]
                def Std.Time.Nanosecond.Ordinal.ofInt (data : Int) (h : 0 data data 999999999) :

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

                Instances For
                  @[inline]
                  def Std.Time.Nanosecond.Ordinal.ofNat (data : Nat) (h : data 999999999) :

                  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