API C_DateAndTime.CompareCalendarTime

From Wowpedia
Jump to: navigation, search

Compares two dates with eachother.

comparison = C_DateAndTime.CompareCalendarTime(lhsCalendarTime, rhsCalendarTime)

Arguments

lhsCalendarTime 
structure - left-hand side CalendarTime
rhsCalendarTime 
structure - right-hand side 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)

Returns

comparison 
number
  • 1 : rhsCalendarTime is at a later time
  • 0 : rhsCalendarTime is at the same time.
  • -1 : rhsCalendarTime is at an earlier time.

Patch changes

See also