ESODecoded

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_TIME

Short excerpt from the shipping addon Lost Treasureits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Lost Treasure6,404,899
CraftStore5,176,147
AwesomeGuildStore4,722,462
RaidNotifier Updated2,789,746
LibPrice1,588,467
TraitBuddy1,101,730