v0.13.8

C_DateAndTime

namespaceavailable in: camelot

Status in wowlua

11 functions: 1 implemented, 1 recorded, 9 guessed. 1 events, 0 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AdjustTimeByDaysReturns the date after a specified amount of days.
(date: CalendarTime, days: number): CalendarTime
guessed
AdjustTimeByMinutesReturns the date after a specified amount of minutes.
(date: CalendarTime, minutes: number): CalendarTime
guessed
AdjustTimeByMonthsReturns 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
CompareCalendarTimeCompares two dates with eachother.
(lhsCalendarTime: CalendarTime, rhsCalendarTime: CalendarTime): number
guessed
GetCalendarTimeFromEpochReturns the date for a specified amount of time since the UNIX epoch for the OS time zone.
(epoch: number): CalendarTime
guessed
GetCurrentCalendarTimeReturns the realm's current date and time.
(): CalendarTime
implemented
GetSecondsUntilDailyResetReturns the number of seconds until the daily reset. · by wowlua
(): number
guessed
GetSecondsUntilWeeklyResetReturns the number of seconds until the weekly reset.
(): number
guessed
GetServerTimeLocalReturns the server's Unix time offset by the server's timezone.
(): number
guessed
GetWeeklyResetStartTimeReturns the unix timestamp of the last weekly reset.
(): number
guessed
IsDayTimeWhether 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

eventpayloadfired by the emulator
DIEL_CYCLE_CHANGEDisDayTime: booleannot 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.