Class TimestampUtil

Hierarchy

  • TimestampUtil

Constructors

Methods

Constructors

Methods

  • The currentTime() method get current timestamp.

    Returns

    timestamp in Time format.

    Parameters

    • Optional timestamp: number

      Specify the timestamp

    • padMethod: ((d: number) => string) = NumberUtil.zeroPad

      Padding method

        • (d: number): string
        • The zeroPad() method pad 1-char-length number.

          Returns

          The zero-leading string of provided number.

          Parameters

          • d: number

            Any number

          Returns string

    Returns Time

Generated using TypeDoc