A aviation & planes forum. AviationBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » AviationBanter forum » rec.aviation newsgroups » Piloting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Flights that Cross Midnight



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old May 7th 04, 06:16 PM
ydm9
external usenet poster
 
Posts: n/a
Default

Thanks for the replay.

I see you use a time of flight (we call that the elapsed time of the
flight). We calculate that by converting the depart and arrive local
times to GMT times. But, to get the correct GMT offset, you have to
know the correct date. To know the correct date, you need to know if
it is the depart date or the day after. If I can determine what date
to use to get the arrive station GMT offset, I'll have it made.


(Teacherjh) wrote in message ...

In order to get the correct GMT offset for the arrive station, I have
to know the correct date to use.


Just let your times go past 24:00 and less than 00:00. Then do a check, and
add or subtract a day based on the result. For example, starting with 23:00,
five hours of flight, and a +2 hour offset, you end up with 30:00 on (say)
Tuesday. Then you check to see if the time is 00:00 or =24:00. Since it's
+24:00, add a day and take away 24:00. So now we have 06:00 Wednesday.


Same idea, if you start out at 03:00 Friday, a two hour flight, and a seven
hour offset (the other way) (in the Space Shuttle, presumably!), you end up
with -06:00 (six hours below zero). We check to see if this is 00:00, and if
so, ADD 24:00 and subtract a day. We h ave 18:00 Thursday.

Limit checks like this are common for all date and time conversions (in fact,
any modulo arithmetic with carry). You'll need to check to see if the date
goes past Sunday (day 7) so it can cycle "back" to Monday (day 1), see if you
passed 31 or 30 or 29 or 28 (depending on month and year) so it can cycle back
to the first of Next Month, see if we passed December, etc.

Jose

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All Vietnam Veterans Were Awarded The Vietnam Cross of Gallantry Otis Willie Naval Aviation 0 May 6th 04 06:56 AM
All Vietnam Veterans Were Awarded The Vietnam Cross of Gallantry Otis Willie Naval Aviation 0 February 16th 04 04:52 AM
All Vietnam Veterans Were Awarded The Vietnam Cross of Gallantry Otis Willie Military Aviation 0 February 16th 04 04:51 AM
All Vietnam Veterans Were Awarded The Vietnam Cross of Gallantry Otis Willie Military Aviation 0 December 1st 03 12:07 AM
Ownership and passengers Roger Long Owning 30 October 11th 03 02:00 PM


All times are GMT +1. The time now is 08:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 AviationBanter.
The comments are property of their posters.