Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Timestamp

Hierarchy

  • Timestamp

Index

Constructors

constructor

  • new Timestamp(low: number, high: number): Timestamp

Properties

Static MAX_VALUE

MAX_VALUE: Timestamp

Static MIN_VALUE

MIN_VALUE: Timestamp

Static NEG_ONE

NEG_ONE: Timestamp

Static ONE

Static ZERO

ZERO: Timestamp

Methods

add

and

compare

div

equals

getHighBits

  • getHighBits(): number

getLowBits

  • getLowBits(): number

getLowBitsUnsigned

  • getLowBitsUnsigned(): number

getNumBitsAbs

  • getNumBitsAbs(): number

greaterThan

greaterThanOrEqual

  • greaterThanOrEqual(other: Timestamp): number

isNegative

  • isNegative(): boolean

isOdd

  • isOdd(): boolean

isZero

  • isZero(): boolean

lessThan

lessThanOrEqual

modulo

multiply

negate

not

notEquals

or

shiftLeft

  • Returns this Timestamp with bits shifted to the left by the given amount.

    Parameters

    • other: number

      The number of bits by which to shift.

    Returns Timestamp

shiftRight

  • Returns this Timestamp with bits shifted to the right by the given amount.

    Parameters

    • other: number

      The number of bits by which to shift.

    Returns Timestamp

shiftRightUnsigned

  • shiftRightUnsigned(other: number): Timestamp
  • Returns this Timestamp with bits shifted to the right by the given amount, with the new top bits matching the current sign bit.

    Parameters

    • other: number

    Returns Timestamp

subtract

toInt

  • toInt(): number

toJSON

  • toJSON(): string

toNumber

  • toNumber(): number

toString

  • toString(radix?: number): string
  • Return the String value.

    Parameters

    • Optional radix: number

      The radix in which the text should be written.

    Returns string

xor

Static fromBits

  • fromBits(lowBits: number, highBits: number): Timestamp
  • Returns a Timestamp representing the 64-bit integer that comes by concatenating the given high and low bits. Each is assumed to use 32 bits..

    Parameters

    • lowBits: number

      The low 32-bits.

    • highBits: number

      The high 32-bits.

    Returns Timestamp

Static fromInt

Static fromNumber

  • Returns a Timestamp representing the given value, provided that it is a finite number. Otherwise, zero is returned.

    Parameters

    • value: number

      The number in question.

    Returns Timestamp

Static fromString

  • fromString(str: string, radix?: number): Timestamp
  • Returns a Timestamp representation of the given string, written using the given radix.

    Parameters

    • str: string

      The textual representation of the Timestamp.

    • Optional radix: number

      The radix in which the text is written.

    Returns Timestamp

Generated using TypeDoc