>wowhelm_
~/forever/addon-api/function/FormatTime

FormatTime

documented function · LuaLocaleContextAPI
FormatTime(unixTimeSeconds, style, timeZone) : result

Formats Unix time as localized time text using locale time patterns, symbols, style, and optional time zone.

──ARGUMENTS
unixTimeSeconds
number (The time as seconds since the Unix epoch; this API converts it to milliseconds.)
style
DateTimeStyle (The time format length; None omits the time portion.)
timeZone
cstring (The time zone ID applied to the formatter; empty strings keep the formatter default.)
──RETURNS
result
string (The formatted time string.)
──DETAILS
May Return Nothing
true
Secret Arguments
AllowedWhenTainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.