TIME
Returns the current wall-clock time of the server with microsecond resolution, read from the operating system’s realtime clock.
Syntax
Section titled “Syntax”TIMETakes no arguments.
Return Value
Section titled “Return Value”Array of two bulk strings:
- Unix timestamp in seconds
- Microseconds already elapsed in the current second
Behavior
Section titled “Behavior”The value comes from the system clock of the node that handles the connection. Different nodes can report different times.
Wall-clock time is not monotonic. It can move backwards on clock adjustments. Callers that need a monotonic value should use TICK instead.
This command does not require the cluster to be initialized. It does not require an active transaction.
Errors
Section titled “Errors”No command-specific errors.
Examples
Section titled “Examples”> TIME1) "1781119691"2) "14102"