Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API C DateAndTime.GetCalendarTimeFromEpoch

Last wiki revision 2022-08-01

Returns the date for a specified amount of time since the UNIX epoch for the OS time zone. date = C_DateAndTime.GetCalendarTimeFromEpoch(epoch)

  • epoch: - time in microseconds
  • date:

local d = C_DateAndTime.GetCalendarTimeFromEpoch(1e6 * 60 * 60 * 24) print(format("One day since epoch is %d-%02d-%02d %02d:%02d", d.year, d.month, d.monthDay, d.hour, d.minute))

> One day since epoch is 1970-01-02 01:00

Source

https://warcraft.wiki.gg/wiki/API_C_DateAndTime.GetCalendarTimeFromEpoch · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.