Represents a date/time object
explicit Timestamp( |
| ) |
Creates a Timestamp object based on the nanoseconds parameter
nanoseconds uint64 | The number of nanoseconds since unix epoch (default of 0) |
Timestamp( |
| ) |
Creates a Timestamp object from the given year, month, day, hour, minute, second, millisecond parameters
year uint16 | The year of the timestamp (ex. 2013) |
month uint16 | The month of the timestamp (ex. 3) |
day uint16 | The day of the timestamp (ex. 31) |
hour uint16 | The hour of the timestamp (ex. 21) |
minute uint16 | The minute of the timestamp (ex. 58) |
second uint16 | The second of the timestamp (ex. 59) |
millisecond | The milliseconds of the timestamp (ex. 123) |
Gets the number of nanoseconds since the unix epoch
The number of nanoseconds since the unix epoch
Gets the number of seconds since the unix epoch
The number of nanoseconds since the unix epoch
Gets a string representation of the Timestamp object in ISO 8601 Date/Time format.
A string representation of the Timestamp.
void setTime( |
| ) |
Updates the Timestamp to the given number of nanoseconds since the unix epoch.
nanosSinceEpoch uint64 | The number of nanoseconds since the unix epoch. |
Sets the Timestamp object to the current system time in UTC
Creates a timestamp using the current system time
A Timestamp object representing the current system time