LibSyncTime-1.0

2.6k Downloads

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:

LibSyncTime-1.0 API

curtime, uncertain = LibStub("LibSyncTime-1.0"):synctime()

Returns

curtime

This is the current server-side UNIX timestamp

uncertain

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.