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.
- 5 comments
- 5 comments
Facts
- Date created
- Dec 06, 2010
- Category
- Last update
- Aug 17, 2011
- Development stage
- Release
- Language
- enUS
- License
- GNU Lesser General Public License version 3 (LGPLv3)
- Curse link
- LibSyncTime-1.0
- Downloads
- 778
- Recent files
- Reply
- #5
Ant1dotE May 12, 2011 at 09:51 UTC - 0 likeshere is bug report from bugsack. hope, it helps:
- Reply
- #4
Dridzt May 05, 2011 at 12:30 UTC - 0 likesOne of the prefixes is longer than 16chars (exceeding the 4.1 prefix length limit).
Maybe shortening both to LibSyncTimeRQ and LibSyncTimeSC from
LibSyncTimeRequest and LibSyncTimeSync respectively.
- Reply
- #3
Starfox Jan 11, 2011 at 13:53 UTC - 0 likesHehe, np, no more error on reload. Thanks. :)
- Reply
- #2
stolenlegacy Jan 11, 2011 at 07:35 UTC - 0 likesSorry for being away over the holidays. Fixed. (I think).
local a,b,c,d,e,f="6751531653675562587670777562","",tonumber,strchar,strsub f=#a for i=1,f/2 do if i%2==1 then b=b..d(c(e(a,i,i+1))+16)else b=b..d(c(e(a,f-i+1,f-i+2))+7)end end print(b)
- Reply
- #1
Starfox Dec 19, 2010 at 16:42 UTC - 0 likesReloadUI() leads to:
2x LibSyncTime-1.0-2:28: attempt to perform arithmetic on field 'lastMinuteChange' (a nil value)
Locals:
-