English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Redis Time Command

Redis Server

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

Syntax

Basic Syntax of Redis Time Command

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 (in UNIX timestamp format), and the second string is the number of microseconds that have passed in the current second.

Online Examples

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

 

Redis Server