Description

This function fetches the current TIMETOKEN from the PubNub cloud.

Code Example

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

 

RESTful Example

URL and Parameters

/time/ JSONP_CALLBACK

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 http://pubsub.pubnub.com/time/0[13573470102556550]

Request / Response Example - JSON(P)

$ curl http://pubsub.pubnub.com/time/myMethodmyMethod([13573471100177515])