Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
r7 release | 2.96 KB | Sep 3, 2012 | 5.0.4 | 1,067 | Download |
r5 release | 2.88 KB | Aug 17, 2011 | 4.2.0 | 327 | Download |
r4 release | 2.92 KB | Jan 11, 2011 | 4.0.3a | 416 | Download |
r3 release | 2.94 KB | Dec 8, 2010 | 4.0.3a | 215 | Download |
r6 alpha | 2.88 KB | Sep 3, 2012 | 5.0.4 | 60 | Download |
r2 alpha | 2.80 KB | Dec 6, 2010 | 4.0.3a | 25 | Download |
Description
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.
Add a comment