iframe header
  • Join FlightAware (Why Join?)
  • Login
  • US Flag 
09:42AM EDT

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: timezone
PostPosted: Fri Apr 27, 2012 1:15 am 
Offline

Joined: Fri Apr 27, 2012 1:10 am
Posts: 6
I am using FlightXML 2 and having issues while using AiportInfo(AirportCode).

I am getting data in the AirportInfoStruct but the timezone property has value ':America/New_York' which is not helping me.

Any code sample using timezone would help.

--Thanks
Danny


Top
 Profile  
 
 Post subject: Re: timezone
PostPosted: Fri Apr 27, 2012 8:38 am 
Offline
FlightAware Staff
dbaker - FlightAware user avatar

Joined: Mon Jul 25, 2005 12:00 am
Posts: 1877
Location: FlightAware WHQ
What language are you coding in? Virtually every language should support that style of time zone.

tcl example:
Code:
% set time [clock seconds]
% clock format $time -timezone :America/New_York
Fri Apr 27 09:39:08 EDT 2012
% clock format $time -timezone :Europe/London
Fri Apr 27 14:39:08 BST 2012
%


Top
 Profile  
 
 Post subject: Re: timezone
PostPosted: Mon Jul 02, 2012 6:19 am 
Offline

Joined: Fri Apr 27, 2012 1:10 am
Posts: 6
I am using VB.Net as a programming language.
Can you please help me out with example in the same language.
I didn' t get what you were explaining in the above example.


-Thanks
Danny


Top
 Profile  
 
 Post subject: Re: timezone
PostPosted: Mon Jul 02, 2012 10:50 am 
Offline
FlightAware Staff
dbaker - FlightAware user avatar

Joined: Mon Jul 25, 2005 12:00 am
Posts: 1877
Location: FlightAware WHQ
Does this answer your question:

http://www.codeproject.com/Articles/100 ... m-DateTime


Top
 Profile  
 
 Post subject: Re: timezone
PostPosted: Tue Jul 03, 2012 12:58 am 
Offline
FlightAware Staff
bovineone - FlightAware user avatar

Joined: Wed Jul 27, 2005 3:00 am
Posts: 234
Location: FlightAware WHQ
You will probably want to use http://zoneinfo.codeplex.com/ for .NET projects that need to translate timezones.


Top
 Profile  
 
 Post subject: Re: timezone
PostPosted: Thu Jul 05, 2012 9:03 am 
Offline

Joined: Fri Apr 27, 2012 1:10 am
Posts: 6
I am doing a maintenance project and facing issues with the timezone.

Before switching to FlightXML 2, the code in vb.net was written for FlightXML 1

Now when I query flighaware, I get the timezone in ':America/New_York' format which is supposed to be Oslon format.
I have converted it from Oslon to Windows format i.e understood by .Net application.

I just want to ask that if I query flightaware with FlightXML 1 API's then what is the return value of timezone?
I mean if I query with airport code say 'KPBI' then what value does it return?

Thanks
Danny


Top
 Profile  
 
 Post subject: Re: timezone
PostPosted: Fri Jul 06, 2012 9:20 pm 
Offline
FlightAware Staff
bovineone - FlightAware user avatar

Joined: Wed Jul 27, 2005 3:00 am
Posts: 234
Location: FlightAware WHQ
FlightXML1 users also receive the same timezone identifiers that are returned by FlightXML2. The AirportInfo functions in both versions of FlightXML share the same worldwide airport database.

Note that depending on your zoneinfo library, you may need to remove the prefixed colon (":") character from the timezone identifiers that are returned by AirportInfo.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
iframe sidebar


 

Airport Tracker/Info


-or-