Available since v2.6.0 The TIME command returns the current server time as a two items lists: a Unix timestamp and the amount of microseconds already elapsed in the current second. Basically the interface is very similar to the one of the gettimeofday system call.

RETURNS: A multi bulk reply containing two elements: unix time in seconds. microseconds.

Hierarchy

Constructors

Properties

blocking?: boolean
dataType?: DataType

Used for "database" commands to enforce type checking.

maxParams: number = 0

Maximum number of parameters allowed. -1 for no maximum.

minParams: number = 0

Minimum number of parameters require.

name: string = "time"
pubSubAllowed?: boolean

Used when PUB/SUB is in effect.

sign?: number

Sign is used in commands with a compliment command. The only current example is INCR/DECR. Sign is 1 for INCR and -1 for DECR

txIgnore?: boolean

Used in transactions to enqueue a command.

Methods