GetDiffBetweenTimeStamps
ESO Lua API function — used by 69 of the 3,030 addons we indexed (combined 23,700,112 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetDiffBetweenTimeStamps(integer53 laterTime, integer53 earlierTime)Returns: number difference
Real usage — from Lost Treasure
local function IsWithinMiningActiveTime(now, miningTimeStamp)
local timeDiff = GetDiffBetweenTimeStamps(now, miningTimeStamp)
local isWithinMiningActiveTime = timeDiff < MINING_ACTIVE_TIMEShort excerpt from the shipping addon Lost Treasure — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Lost Treasure | 6,404,899 |
| CraftStore | 5,176,147 |
| AwesomeGuildStore | 4,722,462 |
| RaidNotifier Updated | 2,789,746 |
| LibPrice | 1,588,467 |
| TraitBuddy | 1,101,730 |