# timezone

**URL:** <https://discussions.flightaware.com/t/timezone/12756>\
**Category:** AeroAPI\
**Created:** [April 27, 2012, 6:15am UTC](https://discussions.flightaware.com/t/timezone/12756 "2012-04-27T06:15:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![catinacaif](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@catinacaif](https://discussions.flightaware.com/u/catinacaif)\
**Post date:** [April 27, 2012, 6:15am UTC](https://discussions.flightaware.com/t/timezone/12756/1 "2012-04-27T06:15:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dbaker](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/dbaker/32/97166_2.png) [@dbaker](https://discussions.flightaware.com/u/dbaker)\
**Post date:** [April 27, 2012, 1:38pm UTC](https://discussions.flightaware.com/t/timezone/12756/2 "2012-04-27T13:38:36Z")

</div>

What language are you coding in? Virtually every language should support that style of time zone.

tcl example:

```auto

% 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
% 

```

---

<div class="post-metadata">

**Author:** ![catinacaif](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@catinacaif](https://discussions.flightaware.com/u/catinacaif)\
**Post date:** [July 2, 2012, 11:19am UTC](https://discussions.flightaware.com/t/timezone/12756/3 "2012-07-02T11:19:59Z")

</div>

I am using [VB.Net](http://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

---

<div class="post-metadata">

**Author:** ![dbaker](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/dbaker/32/97166_2.png) [@dbaker](https://discussions.flightaware.com/u/dbaker)\
**Post date:** [July 2, 2012, 3:50pm UTC](https://discussions.flightaware.com/t/timezone/12756/4 "2012-07-02T15:50:14Z")

</div>

Does this answer your question:

[codeproject.com/Articles/100 … m-DateTime](http://www.codeproject.com/Articles/10081/UNIX-timestamp-to-System-DateTime)

---

<div class="post-metadata">

**Author:** ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)\
**Post date:** [July 3, 2012, 5:58am UTC](https://discussions.flightaware.com/t/timezone/12756/5 "2012-07-03T05:58:34Z")

</div>

You will probably want to use [zoneinfo.codeplex.com/](http://zoneinfo.codeplex.com/) for .NET projects that need to translate timezones.

---

<div class="post-metadata">

**Author:** ![catinacaif](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@catinacaif](https://discussions.flightaware.com/u/catinacaif)\
**Post date:** [July 5, 2012, 2:03pm UTC](https://discussions.flightaware.com/t/timezone/12756/6 "2012-07-05T14:03:53Z")

</div>

I am doing a maintenance project and facing issues with the timezone.

Before switching to FlightXML 2, the code in [vb.net](http://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

---

<div class="post-metadata">

**Author:** ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)\
**Post date:** [July 7, 2012, 2:20am UTC](https://discussions.flightaware.com/t/timezone/12756/7 "2012-07-07T02:20:01Z")

</div>

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.
