new Timestamp(low, high){Timestamp}
Name | Type | Description |
---|---|---|
low |
number |
the low (signed) 32 bits of the Timestamp. |
high |
number |
the high (signed) 32 bits of the Timestamp. |
Methods
-
toJSON(){String}
-
Return the JSON value.
Returns:
JSON representation.
-
staticTimestamp.fromBits(lowBits, highBits){Timestamp}
-
Returns a Timestamp for the given high and low bits. Each is assumed to use 32 bits.
Name Type Description lowBits
number the low 32-bits.
highBits
number the high 32-bits.
Returns:
timestamp.
-
staticTimestamp.fromInt(value){Timestamp}
-
Returns a Timestamp represented by the given (32-bit) integer value.
Name Type Description value
number the 32-bit integer in question.
Returns:
timestamp.
-
staticTimestamp.fromNumber(value){Timestamp}
-
Returns a Timestamp representing the given number value, provided that it is a finite number. Otherwise, zero is returned.
Name Type Description value
number the number in question.
Returns:
timestamp.
-
staticTimestamp.fromString(str, opt_radix){Timestamp}
-
Returns a Timestamp from the given string, optionally using the given radix.
Name Type Description str
String the textual representation of the Timestamp.
opt_radix
number optional the radix in which the text is written.
Returns:
timestamp.