Retrieves the current Kuzzle time.

now([options], callback)

Arguments Type Description
options JSON Object Optional parameters
callback function Callback handling the response


Option Type Description Default
queuable boolean Make this request queuable or not true

Callback Response

Returns an integer containing the current Kuzzle time, encoded as an UTC Epoch time in milliseconds.


Copied to clipboard! ResponseListener<Date>() {
  public void onSuccess(Date object) {
    // 'object' contains the Kuzzle timestamp (utc, in milliseconds)

  public void onError(JSONObject error) {
    // Handle error

Callback response:

Copied to clipboard!