Core
API v2.x
2

time #

Returns the current server time.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_time
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "time"
}

Response #

Returns the time as a two items array:

  • a timestamp in Epoch time
  • the number of microseconds already elapsed in the current second

Example #

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "time",
  "collection": null,
  "index": null,
  "result": [
    "1538640821",
    "450704"
  ]
}