C_DateAndTime.AdjustTimeByDays

From Warcraft Wiki
Jump to navigation Jump to search

Returns the date after a specified amount of days.

newDate = C_DateAndTime.AdjustTimeByDays(date, days)
        = C_DateAndTime.AdjustTimeByMinutes(date, minutes)

Arguments

AdjustTimeByDays

date
CalendarTime
days
number

AdjustTimeByMinutes

date
CalendarTime
minutes
number

Returns

newDate
CalendarTime
Field Type Description
year number The current year (e.g. 2019)
month number The current month [1-12]
monthDay number The current day of the month [1-31]
weekday number The current day of the week (1=Sunday, 2=Monday, ..., 7=Saturday)
hour number The current time in hours [0-23]
minute number The current time in minutes [0-59]

Patch changes

Battle for Azeroth Patch 8.1.0 (2018-12-11): Added.