summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/time.md
blob: 441376ede06589e1d1b77a7cebb60927ef705d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
The `TIME` command returns the current server time as a two items lists: a Unix
timestamp and the amount of microseconds already elapsed in the current second.
Basically the interface is very similar to the one of the `gettimeofday` system
call.

@return

@array-reply, specifically:

A multi bulk reply containing two elements:

- unix time in seconds.
- microseconds.

@examples

```cli
TIME
TIME
```