PubNub 3.x for Python-Tornado will encounter End Of Life (EOL) July 1st, 2017. All users currently on 3.x should begin migrating to 4.x. The
If you have questions about the PubNub for Python SDK, please contact us at firstname.lastname@example.org.
The timetoken is constructed using the following algorithm:
Example of creating a timetoken for a specific time & date
Timeyou can use the following method(s) in Python SDK
Parameter Type Required Description
Function Optional A
Callbackmethod should be passed to the method. If set, the api works in async mode. Required argument when working with twisted or tornado.
def _callback(response): print(response) pubnub.time(callback=_callback)
time()function returns a string timetoken in the following format: