Thanks cameni,
It seems this works:
tday = ((playerUTCHour * 60 * 60 * 1000) + (playerUTCMinute * 60 * 1000) + (playerUTCSecond * 1000));
this->set_time(playerDayNumber-1, tday);
the 'player' variables are being extracted from fsx. So maybe I was over thinking it trying to work with solar time.
@acetone.
Your LHNA didn't line up with FSX out of the box but I downloaded some alps scenery for fsx/p3d that had been corrected and it lines up perfectly! WWhat a pleasure.
Talkeetna was close.. the centerline was ok but the piano keys were in the 'fsx' grass. About 2m lower than the fsx runway. Bald Mtn was a blast but about 9m difference in altitude.
I'm thinking I might just butcher the fsx bgl files to match your OT files
Assuming its possible, I'm going to invest a little time making some runway lights. Outerra just kills at sunrise/sunset but I really need lighting on the runways.
If you're looking for a new scenery project any time...Innsbruck would be beautiful!
I had a go at doing St Barts but for the life of me, I couldn't get the runway at the correct elevation and flat. It just seemed to lay along the terrain. But I'll keep trying.