LibSyncTime-1.0 is a light-weight solution that provides a server-side UNIX timestamp useful for synchronizing data across clients in multiple timezones or with non-synchronized system clocks.
LibSyncTime uses a single, simple API call:
curtime, uncertain = LibStub("LibSyncTime-1.0"):synctime()
This is the current server-side UNIX timestamp
This boolean being true indicates that no second-level precision is guaranteed on the return value. This means that no time sync has been recieved and no server time change has been observed since UI load.
- Date created
- Dec 06, 2010
- Last updated
- Sep 01, 2011