LuaLua Misc API Reference for Realtime Apps

Go to Storage & Playback

This function will return a 17 digit precision Unix epoch.
The timetoken is constructed using the following algorithm:
timetoken = (Unix epoch time in seconds) * 10000000
Example of creating a timetoken for a specific time & date
08/19/2013 @ 9:20pm in UTC = 1376961606
timetoken = 1376961606 * 10000000
timetoken = 13769616060000000
To fetch Time you can use the following method(s) in Lua SDK
  1. ParameterTypeRequiredDescription
    callbackfunctionYesCallback function to call with the received time (token).
    textout("Got time token: " .. t)