Wraps a timestamp value stored as nanoseconds since the epoch for use in JS.

This type extends LongWrapper and inherits the following conversions:

Hierarchy

Constructors

Methods

  • Returns the wrapped timestamp as a JavaScript Date.

    Returns Date

    A Date representing the wrapped value.

  • Returns the wrapped value as a number.

    Returns number

    The wrapped long converted to a JS Number.

  • Returns the string representation of the wrapped value.

    Returns string

  • Returns the string representation of this value.

    Provided to match JavaScript's `valueOf` convention.

    Returns string

    The string form of this value.

  • Creates a wrapper from a JavaScript Date.

    Parameters

    • date: Date

      The JavaScript date value.

    Returns DateWrapper

    A wrapper containing the corresponding timestamp in nanoseconds.

  • Creates a wrapper from an integer string. The provided string may start with + or -, and must otherwise only contain the digits 0-9.

    Parameters

    • str: string

      A string representation of an integer.

    Returns LongWrapper

    A wrapper for the parsed value, or null if the parsed value is io.deephaven.util.NULL_LONG.