w3resource

Redis Server: TIME

TIME

Redis TIME command is used to return the current server time as a two items lists: a Unix timestamp and the amount of microseconds already elapsed in the current second.

Syntax:

TIME

Available since

2.6.0.

Return Value

A multi bulk reply containing two elements:

  • unix time in seconds.
  • microseconds.

Return Value Type

Integer

Example: Redis TIME

redis 127.0.0.1:6379> TIME 
1) "1410856598"
2) "928370"

Previous: SYNC
Next: Administration Backup and Restore



Follow us on Facebook and Twitter for latest update.