Page 1 of 1

Regarding E:TIME OF DAY with PDK

Posted: Tue Jun 11, 2019 3:11 pm
by BenBaron
Hi guys,

can the variable "E:TIME OF DAY" which is referenced here: https://www.prepar3d.com/SDKv4/sdk/refe ... ables.html, be retrieved via PDK's GlobalDataService, like the other time variables on that page?

Didn't find a way to do so, so I am currently using PanelService's ExecuteCalculatorCode() method to retrieve it, but find it a but unintuitive.

All the best,

Benny

Re: Regarding E:TIME OF DAY with PDK

Posted: Tue Jun 11, 2019 7:14 pm
by Clifton Crane
Hi Benny,

There is a function called GetGeneralTimeOfDay. It is located in IGlobalData.Legacy.h which is the IGlobalDataV400 interface. You should still have access to it from the IGlobalDataV430 interface, however.

Hope this helps.

Re: Regarding E:TIME OF DAY with PDK

Posted: Wed Jun 12, 2019 2:17 pm
by BenBaron
Thanks Clifton for the quick reply.

Indeed, it is working as you described. Maybe you can update the documentation on this matter, as there is only a notice on the SDK page, that P3D::IGlobalDataV430 inherits IGlobalDataV400, but not what IGlobalDataV400 exactly entails :).

Thanks for your help.

All the best,

Benny