GetSecondsSinceMidnight

From ESOUI Wiki

Jump to: navigation, search

This function returns the total number of seconds that have passed since midnight (in the real world). This is effectively the current time of day, represented in seconds.

Example

local localTimeSinceMidnight = GetSecondsSinceMidnight()
local text, secondsUntilNextUpdate = ZO_FormatTime(localTimeSinceMidnight, TIME_FORMAT_STYLE_CLOCK_TIME, CLOCK_FORMAT)
--
-- text == a string like "9:18 PM"

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox