WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR API and Graphics Changes (https://www.wowinterface.com/forums/forumdisplay.php?f=175)
-   -   Removal of Calendar related API (https://www.wowinterface.com/forums/showthread.php?t=56285)

arith 06-13-18 10:23 PM

Removal of Calendar related API
 
So far I found the following API calls are no longer valid:
  • CalendarGetDate
  • CalendarGetDayEvent
  • CalendarGetEventInfo
  • CalendarGetMonth
  • CalendarGetMonthNames
  • CalendarGetNumDayEvents

Didn't tried most of the others. Probably others know better than me.

Fizzlemizz 06-13-18 10:33 PM

C_Calendar.GetDate
C_Calendar.GetDayEvent
...

While in the beta type,

/api calendar list

Impurity 08-06-18 08:04 PM

Quote:

Originally Posted by Fizzlemizz (Post 328323)
C_Calendar.GetDate
C_Calendar.GetDayEvent
...

While in the beta type,

/api calendar list

Looks like those are returning nil no matter how I parse it, unless I just try and output the plain C_Calendar.GetDate. Any ideas?

Fizzlemizz 08-06-18 08:29 PM

Lua Code:
  1. local date = C_Calendar.GetDate()
  2. local presentWeekday = date.weekday
  3. local presentMonth = date.month
  4. local presentDay = date.monthDay
  5. local presentYear = date.year

or in game
Code:

/run local date = C_Calendar.GetDate() print(date.weekday, date.month, date.monthDay, date.year)


All times are GMT -6. The time now is 08:00 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI