C_DateAndTime
namespaceavailable in: camelotStatus in wowlua
11 functions: 1 implemented, 1 recorded, 9 guessed. 1 events, 0 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
AdjustTimeByDays | Returns the date after a specified amount of days.(date: CalendarTime, days: number): CalendarTime | guessed |
AdjustTimeByMinutes | Returns the date after a specified amount of minutes.(date: CalendarTime, minutes: number): CalendarTime | guessed |
AdjustTimeByMonths | Returns the date moved by a number of months, keeping the day of the month or using the month's last day when it has fewer. · by wowlua(date: CalendarTime, months: number): CalendarTime | guessed |
CompareCalendarTime | Compares two dates with eachother.(lhsCalendarTime: CalendarTime, rhsCalendarTime: CalendarTime): number | guessed |
GetCalendarTimeFromEpoch | Returns the date for a specified amount of time since the UNIX epoch for the OS time zone.(epoch: number): CalendarTime | guessed |
GetCurrentCalendarTime | Returns the realm's current date and time.(): CalendarTime | implemented |
GetSecondsUntilDailyReset | Returns the number of seconds until the daily reset. · by wowlua(): number | guessed |
GetSecondsUntilWeeklyReset | Returns the number of seconds until the weekly reset.(): number | guessed |
GetServerTimeLocal | Returns the server's Unix time offset by the server's timezone.(): number | guessed |
GetWeeklyResetStartTime | Returns the unix timestamp of the last weekly reset.(): number | guessed |
IsDayTime | Whether it is daytime in the game world. · by wowlua(): boolean | recorded |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
DIEL_CYCLE_CHANGED | isDayTime: boolean | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("DIEL_CYCLE_CHANGED").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (DateAndTime system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.