summaryrefslogtreecommitdiffstats
path: root/src/commands/time.json
blob: 3161d3fcd7cc452c8dd57bcd952fcaf1e1c77683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
    "TIME": {
        "summary": "Returns the server time.",
        "complexity": "O(1)",
        "group": "server",
        "since": "2.6.0",
        "arity": 1,
        "function": "timeCommand",
        "command_flags": [
            "LOADING",
            "STALE",
            "FAST"
        ],
        "command_tips": [
            "NONDETERMINISTIC_OUTPUT"
        ],
        "reply_schema": {
            "type": "array",
            "description": "Array containing two elements: Unix time in seconds and microseconds.",
            "minItems": 2,
            "maxItems": 2,
            "items": {
                "type": "string",
                "pattern": "[0-9]+"
            }
        }
    }
}