- Redis Basics
- Redis - Home
- Redis - Overview
- Redis - Environment
- Redis - Configuration
- Redis - Data types
- Redis Commands
- Redis - Commands
- Redis - Keys
- Redis - Strings
- Redis - Hashes
- Redis - Lists
- Redis - Sets
- Redis - Sorted Sets
- Redis - HyperLogLog
- Redis - Publish Subscribe
- Redis - Transactions
- Redis - Scripting
- Redis - Connections
- Redis - Server
- Redis Advanced
- Redis - Backup
- Redis - Security
- Redis - Benchmarks
- Redis - Client Connection
- Redis - Pipelining
- Redis - Partitioning
- Redis - Java
- Redis - Php
- Redis Useful Resources
- Redis - Quick Guide
- Redis - Useful Resources
- Redis - Discussion
Redis - Server Time Command
Redis TIME command returns the current server time as a two-items list − a Unix timestamp and the amount of microseconds already elapsed in the current second. Basically, the interface is similar to the one of the gettimeofday system call.
Return Value
A multi bulk reply containing two elements −
- Unix time in seconds.
- Microseconds.
Syntax
Following is the basic syntax of Redis TIME command.
redis 127.0.0.1:6379> TIME
Example
redis 127.0.0.1:6379> TIME 1) "1410856598" 2) "928370"
redis_server.htm
Advertisements