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))
elseShort excerpt from the shipping addon Votan's Minimap — 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 |
|---|---|
| Votan's Minimap | 4,211,718 |
| Arkadius' Trade Tools | 845,488 |
| Group Loot Notifier | 363,639 |
| Clock - Tamriel Standard Time - Legacy | 360,533 |
| Shissu's LUA Memory | 336,742 |
| Votan's Achievements Overview | 330,065 |