Quantcast Removal of Calendar related API - WoWInterface
Thread Tools Display Modes
06-13-18, 10:23 PM   #1
arith
A Cyclonian
 
arith's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 41
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.
  Reply With Quote
06-13-18, 10:33 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 923
C_Calendar.GetDate
C_Calendar.GetDayEvent
...

While in the beta type,

/api calendar list
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle and Move Pad Plus.

Last edited by Fizzlemizz : 06-13-18 at 10:55 PM.
  Reply With Quote
08-06-18, 08:04 PM   #3
Impurity
A Kobold Labourer
Join Date: Aug 2018
Posts: 1
Originally Posted by Fizzlemizz View Post
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?
  Reply With Quote
08-06-18, 08:29 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 923
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)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle and Move Pad Plus.
  Reply With Quote

WoWInterface » PTR » PTR API and Graphics Changes » Removal of Calendar related API

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off