Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_DateAndTime.AdjustTimeByDays

From Wowpedia
Jump to: navigation, search

Returns the date after a given amount of days or minutes.

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

Arguments (AdjustTimeByDays)

date 
structure - CalendarTime
days 
number

Arguments (AdjustTimeByMinutes)

date 
structure - CalendarTime
minutes 
number

Returns

newDate 
structure - CalendarTime
CalendarTime
Key Type Description
year number The current year (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

See also