Latest web development tutorials

Redis Time command

Redis server

Redis Time command returns the current server time.

grammar

redis Time basic command syntax is as follows:

redis 127.0.0.1:6379> TIME 

Available versions

> = 2.6.0

return value

It contains a list of two strings: the first string is the current time (in UNIX timestamp format), and the second string is the current number of seconds has elapsed microseconds.

Examples

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

Redis server