Introduction
Message Persistence allows you to store and retrieve messages. You can retrieve the following:
Timetokens
The timetoken represents a 17-digit precision unix time (UTC). To convert PubNub's timetoken to Unix timestamp (seconds), divide the timetoken number by 10,000,000 (10^7).
To convert back and forth between current time, check out the following Ruby example:
> now = Time.now => 2012-11-02 14:27:11 -0700
> timetoken = now.to_f * 10000000 => 13518916319742640
> Time.at(timetoken / 10000000) => 2012-11-02 14:27:11 -0700
For more information, refer to Message Persistence.