Class NetworkTimestamp

Represents a Symbol network timestamp with millisecond resolution.

Hierarchy

  • NetworkTimestamp
    • NetworkTimestamp

Constructors

  • Creates a timestamp.

    Parameters

    • timestamp: number | bigint

      Raw network timestamp.

    Returns NetworkTimestamp

Properties

timestamp: bigint

Underlying timestamp.

Accessors

  • get isEpochal(): boolean
  • Determines if this is the epochal timestamp.

    Returns boolean

    \c true if this is the epochal timestamp.

Methods

  • Adds a specified number of hours to this timestamp.

    Parameters

    • count: number | bigint

      Number of hours to add.

    Returns NetworkTimestamp

    New timestamp that is the specified number of hours past this timestamp.

  • Adds a specified number of milliseconds to this timestamp.

    Parameters

    • count: number | bigint

      Number of milliseconds to add.

    Returns NetworkTimestamp

    New timestamp that is the specified number of milliseconds past this timestamp.

  • Adds a specified number of minutes to this timestamp.

    Parameters

    • count: number | bigint

      Number of minutes to add.

    Returns NetworkTimestamp

    New timestamp that is the specified number of minutes past this timestamp.

  • Adds a specified number of seconds to this timestamp.

    Parameters

    • count: number | bigint

      Number of seconds to add.

    Returns NetworkTimestamp

    New timestamp that is the specified number of seconds past this timestamp.

  • Returns string representation of this object.

    Returns string

    String representation of this object