# TIME

> Return the server's current time as seconds and microseconds.

URL: https://docs.hotkv.com/commands/time/

```
TIME
```

- Group: Server
- Complexity: O(1)
- HotKV Cloud: all plans
- On-Premise: no license needed

`TIME` returns the server's wall-clock time. Use it when several clients
need one clock to agree on, for example to timestamp events or check clock
drift between application hosts.

## Return value

An array of two bulk strings, in RESP2 and RESP3:

1. The Unix time in seconds.
2. The microseconds elapsed in the current second.

## Examples

```
127.0.0.1:6379> TIME
1) "1790000000"
2) "482113"
```

## Compatibility

Same as Redis 7 and Valkey 8.

## See also

[LASTSAVE](https://docs.hotkv.com/commands/lastsave/index.md), [INFO](https://docs.hotkv.com/commands/info/index.md) (`server_time_usec`)