GetDateStringFromTimestamp
ESO Lua API function — used by 89 of the 3,030 addons we indexed (combined 12,966,594 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetDateStringFromTimestamp(integer timestamp)Returns: string dateString
Real usage — from Combat Metrics
local datestring = type(date) == "number" and GetDateStringFromTimestamp(date) or date
local timestring = string.format("%s%s, %s", accountstring, datestring, data.time)Short excerpt from the shipping addon Combat Metrics — 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 |
|---|---|
| Combat Metrics | 7,085,289 |
| Arkadius' Trade Tools | 845,488 |
| Wykkyd Outfitter | 632,442 |
| Wykkyd Toolbar | 567,448 |
| Shissu's LUA Memory | 336,742 |
| Votan's Achievements Overview | 330,065 |