Using VB.Net coding I would like to calculate what the real time is while I’m traveling in a moving jet plane. I will be using this information to remind myself when the time is close to the following times: 04:00, 13:00, 17:00, 19:00 and 21:00
The flight duration is 9 hours and 50 minutes.
The flight leaves Kennedy Airport at 12:50 and arrives in Istanbul at 05:40.
If you can show me the coding required to find 19:00 and 04:00 that would be very much appreciated and I can figure out the other times based on your coding.
I was thinking that if I can figure out how much faster 1 second is than I think I can figure out when the target times will be.
Example: If 1 second on my watch = 3 seconds while on the plane I can figure out that in 10 minutes of travel, the real time has advanced 1/2 hour.
You cannot get an exact time if you don’t have a GPS position or the speed and heading of the airplane. What you can do is approximate.
If flight time is 10 hours and you leave at 12.00 you would arrive at 22.00 if you were in the same timezone. The actual time at the destination would be 04.00 if you would pass 6 time zones.
This would mean that 16 passing hours is only 10 hours in “real” time. So 16/10 = 1.6 hours per real hour. This means that time moves 1.6 times faster then in “reality”.
Create a program that has a timer and for every second add 0.6 seconds. Start the timer at takeoff.
Or the other way around. Trigger the timer every 1/1.6 seconds and add a second to your clock. This will of course NOT be the real time at your current position but an approximation.