Jump to content
The simFlight Network Forums

Zulu Day of Week question


Recommended Posts

Hi John / Pete,

In the FSUIPC Offsets PDF there is an entry for Zulu Day of Week. Reading this value and together with other offsets and a bit of code I can display Mon, Tue, Wed etc in a LUA display on a wideFS PC. I find this helpful when checking Ai timetables as I can see the local time and date in FS. See attached image.

However, the Zulu Day Of Week value has no corresponding Local Day of Week value. So, for example if I'm located in Hawaii or New Zealand at certain UK times the Zulu Day of Week value is for the wrong day. It shows my day of week rather than the local day of week.

I appreciate if there's no value in P3D you can't extract it. But is there any way it can be coded in LUA to show the correct day of week?

Ray_LUA.jpg

Link to comment
Share on other sites

Hi Ray,

there is a Local Day of Week simvar that I can add to an offset. Give me a day or two and I'll post an updated dll here for you to try (FSUIPC6).

Otherwise you could look into lua functions to convert a zulu time to another timezone, then extract the day, but I'm not sure what lua API/functions you would need to do this without investigating.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.