This function fetches the current TIMETOKEN from the PubNub cloud.

Code Example

PUBNUB.time(function(time){    log(time)})


RESTful Example

URL and Parameters


JSONP_CALLBACK  is the name of the JSONP callback function. Use the JSONP callback's function name, or  0  if you are not using JSONP.

Request / Response Example - JSON

$ curl[13573470102556550]

Request / Response Example - JSON(P)

$ curl[13573471100177515])