Easy Tutorial
❮ Redis Security Strings Append ❯

Redis Time Command

Redis Server

The Redis Time command is used to return the current server time.

Syntax

The basic syntax of the redis Time command is as follows:

redis 127.0.0.1:6379> TIME

Available Versions

= 2.6.0

Return Value

A list containing two strings: the first string is the current time (represented in UNIX timestamp format), and the second string is the number of microseconds that have elapsed in the current second.

Example

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

Redis Server

❮ Redis Security Strings Append ❯