ESODecoded

GetSecondsSinceMidnight

ESO Lua API function — used by 41 of the 3,030 addons we indexed (combined 7,793,734 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetSecondsSinceMidnight()

Returns: integer secondsSinceMidnight

Real usage — from Votan's Minimap

		if account.showRealTimeClock then
			addonInstance.clockRealTime:SetText(FormatTimeSeconds(GetSecondsSinceMidnight(), TIME_FORMAT_STYLE_CLOCK_TIME, addonInstance.account.timeFormat, TIME_FORMAT_DIRECTION_NONE))
		else

Short excerpt from the shipping addon Votan's Minimapits 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
Votan's Minimap4,211,718
Arkadius' Trade Tools845,488
Group Loot Notifier363,639
Clock - Tamriel Standard Time - Legacy360,533
Shissu's LUA Memory336,742
Votan's Achievements Overview330,065