I have been using FSInterrogate2 to get the offsets The offsets are Time: Hours: 0238 Minuets: 0239 Seconds: 023A Date: Day: 0245 Month: 0244 Year: 024A Here is the first part of the code that goes into C#
private Offset<int> sim_timeh = new Offset<int>(0x0238); //TimeHours
private Offset<int> sim_timem = new Offset<int>(0x0239); //TimeMinuets
private Offset<int> sim_times = new Offset<int>(0x023A); //TimeSeconds
private Offset<int> sim_dayd = new Offset<int>(0x0245); //DateDay
private Offset<int> sim_daym = new Offset<int>(0x0244); //DateMonth
private Offset<int> sim_dayy = new Offset<int>(0x024A); //DateYear
These are then shown in a text label
//Sim Time Hour:Minuet:Seconds
double sim_timehour = (double)sim_timeh.Value / 16777217; //TimeHours
double sim_timemin = (double)sim_timem.Value / 16777217; //TimeMinuets
double sim_timesec = (double)sim_times.Value; //TimeSeconds
this.fsxSimTime.Text = sim_timehour.ToString("F0") + ":" + sim_timemin.ToString("f0") + ":" + sim_timesec.ToString("f0");
//Sim Date Day/Month/Year
double sim_dayday = (double)sim_dayd.Value; //DateDay
double sim_daymonth = (double)sim_daym.Value; //DateMonth
double sim_dayyear = (double)sim_dayy.Value; //DateYear
this.fsxSimDate.Text = sim_daymonth.ToString("F0") + "/" + sim_daymonth.ToString("f0") + "/" + sim_dayyear.ToString("f0");
The Hour and Minuets and Year display perfect as they should. The Seconds, Day and Month just show random numbers. I used the offests found in the FSInterrogate2, and so far all my other requests from FSX using other offsets are giving the correct data.