~/forever/addon-api/function/FormatDate
FormatDate
documented function · LuaLocaleContextAPI
FormatDate(unixTimeSeconds, style, timeZone) : resultFormats Unix time as localized date text using locale date patterns, symbols, style, and optional time zone.
──ARGUMENTS
- unixTimeSeconds
- number (The date as seconds since the Unix epoch; this API converts it to milliseconds.)
- style
- DateTimeStyle (The date format length; None omits the date portion.)
- timeZone
- cstring (The time zone ID applied to the formatter; empty strings keep the formatter default.)
──RETURNS
- result
- string (The formatted date string.)
──DETAILS
- May Return Nothing
- true
- Secret Arguments
- AllowedWhenTainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.