Regarding E:TIME OF DAY with PDK

BenBaron
Posts: 62
Joined: Fri Jan 16, 2015 7:51 am

Regarding E:TIME OF DAY with PDK

Postby BenBaron » Tue Jun 11, 2019 3:11 pm

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

Clifton Crane
Lockheed Martin
Posts: 960
Joined: Tue Sep 25, 2012 2:34 pm

Re: Regarding E:TIME OF DAY with PDK

Postby Clifton Crane » Tue Jun 11, 2019 7:14 pm

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.
Clifton Crane
Prepar3D® Software Engineer

BenBaron
Posts: 62
Joined: Fri Jan 16, 2015 7:51 am

Re: Regarding E:TIME OF DAY with PDK

Postby BenBaron » Wed Jun 12, 2019 2:17 pm

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


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 1 guest