>wowhelm_
~/forever/addon-api/function/C_Intl.FormatDateTime

C_Intl.FormatDateTime

documented function · Intl
C_Intl.FormatDateTime(unixTimeSeconds, dateStyle, timeStyle, timeZone) : result

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

──ARGUMENTS
unixTimeSeconds
number (The date and time as seconds since the Unix epoch; this API converts it to milliseconds.)
dateStyle
DateTimeStyle (The date format length; None omits the date portion.)
timeStyle
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 date and 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.