1.0.0 • Published 7 years ago
pubnub-time v1.0.0
pubnub-time
Syncronize local time with PubNub server time.
Installation
$ npm install pubnub-time
Usage
var PubNubTime = require('pubnub-time')
// To sync local time with PubNub server time
PubNubTime.init()
// To calculate current server time
var serverTime = PubNubTime.currentTime()
License
1.0.0
7 years ago