API C DateAndTime.GetCalendarTimeFromEpoch

Returns the date of a given amount of time since the UNIX epoch, for the operating system's time zone. date = C_DateAndTime.GetCalendarTimeFromEpoch(epoch)

Arguments

 * epoch : number - time in microseconds

Returns

 * date : CalendarTime

Example
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