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
  #11  
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

  #12  
Old May 7th 04, 06:31 PM
John Gaquin
external usenet poster
 
Posts: n/a
Default


"ydm9" wrote in message

Programming it is the easy part. Knowing what
to program is the problem. Seeing that I have not received the
solution lets me know that I am in the majority of dumb folks.


If that's how your logic works, your difficulties are understandable. Why
are you asking pilots to answer programming questions? Would you ask
programmers how to fly? There are a number of programming newsgroups that
might be able to help.


  #13  
Old May 7th 04, 06:37 PM
John Gaquin
external usenet poster
 
Posts: n/a
Default


"ydm9" wrote in message

If I can determine what date
to use to get the arrive station GMT offset, I'll have it made.


I would think it would make more sense to input the GMT correction, then
calculate any cross-midnight adjustment based on the flight arrival time.
The GMT offset will be a constant (+/- 1 if that locale uses DST) regardless
of your arrival time. Boston is always GMT-4 or -5, and there are only two
dates when the variable comes into play.


  #14  
Old May 7th 04, 07:03 PM
Dima Volodin
external usenet poster
 
Posts: n/a
Default

"John Gaquin" wrote in message
...

"ydm9" wrote in message

Programming it is the easy part. Knowing what
to program is the problem. Seeing that I have not received the
solution lets me know that I am in the majority of dumb folks.


If that's how your logic works, your difficulties are understandable. Why
are you asking pilots to answer programming questions? Would you ask
programmers how to fly?


Well, ummm, some programmers _are_ pilots :-)


Dima

  #15  
Old May 7th 04, 11:49 PM
Teacherjh
external usenet poster
 
Posts: n/a
Default


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.


You need to know which way you are counting, and how many hours you are
counting. I am thinking you start at Rome, and fly west to Calfornia. You
have a time difference of MINUS 8? hours. Sometimes this puts you on the same
day, and sometimes not. This has to do with what time it is in Rome. If
taking eight hours takes you "below zero" then it is the previous day.

Jose

--
(for Email, make the obvious changes in my address)
  #16  
Old May 8th 04, 02:21 AM
John Gaquin
external usenet poster
 
Posts: n/a
Default


"Dima Volodin" wrote in message news:ecQmc.12197

Well, ummm, some programmers _are_ pilots :-)


Well, duh! Some surgeons are also woodworkers, but you wouldn't go on a
woodworking NG and ask questions about surgical procedure.


  #17  
Old May 8th 04, 11:18 AM
Cub Driver
external usenet poster
 
Posts: n/a
Default


Boston is always GMT-4 or -5, and there are only two
dates when the variable comes into play.


Of course planes depart London on local time, not Zulu.

The U.S. & Britain don't change summer/winter times necessarily on the
same date. (I think the gap is most noticable in autumn.)

(Or perhaps that's what you were saying? But as I recall, the autumn
gap is a couple of weeks.)

all the best -- Dan Ford
email: (put Cubdriver in subject line)

The Warbird's Forum
www.warbirdforum.com
The Piper Cub Forum www.pipercubforum.com
Viva Bush! blog www.vivabush.org
  #18  
Old May 8th 04, 02:54 PM
Dima Volodin
external usenet poster
 
Posts: n/a
Default

John Gaquin wrote:

"Dima Volodin" wrote in message news:ecQmc.12197

Well, ummm, some programmers _are_ pilots :-)


Well, duh! Some surgeons are also woodworkers, but you wouldn't go on a
woodworking NG and ask questions about surgical procedure.


Some voters are pilots, and they don't seem to have any problems
discussing all things politics on r.a.p :-)


Dima
  #19  
Old May 8th 04, 06:18 PM
John Gaquin
external usenet poster
 
Posts: n/a
Default


"Cub Driver" wrote in message
...

Boston is always GMT-4 or -5, and there are only two
dates when the variable comes into play.


Of course planes depart London on local time, not Zulu.

The U.S. & Britain don't change summer/winter times necessarily on the
same date. (I think the gap is most noticable in autumn.)


No, I meant that there are only two dates when the variable comes into play
for each station. You run the whole thing in GMT, from the computer's pov.


  #20  
Old May 8th 04, 06:21 PM
John Gaquin
external usenet poster
 
Posts: n/a
Default


"Dima Volodin" wrote in message
...

Some voters are pilots, and they don't seem to have any problems
discussing all things politics on r.a.p :-)


True, but the OP was asking specific, technical questions on an unrelated
NG, then getting aggravated when good solutions were not forthcoming. Makes
no sense.


 




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 11:56 AM.


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