< prev | next >

timeZone < Attributes < Home

timeZone

The timeZone attribute defines the time zone to which times are localized. All dates and times within our software are handled internal in UTC. However, it is often desireable to display them in local time. The timeZoen attribute allows you to specify which time zone to apply. Its value should be in the form of a time zone name.

Supporting Tags

The timeZone attribute is currently supported by the <map> and <time> tags, to specify the time zone for a map or graph, respectively. The default time zone is always UTC, also called Greenwich Mean Time. In the time zone attribute, UTC is referred to as "Greenwich".

Examples

<map timeZone="Central">
  <!-- Map elements are defined here. -->
</map>
         
<map timeZone="Greenwich">
  <!-- Map elements are defined here. -->
</map>
         
<graph>
  <time timeZone="Mountain" start="199902010000"
    end="199902012345"/>
  <!-- Graph elements are defined here. -->
</graph>
         

Notes

Note that when specifying a time zone, you don't distinguish between Standard and Daylight time. The software will automatically determine if a particular time falls within the Daylight Savings period, and will display it accordingly. The only exception is for times displayed in UTC, for which Daylight Savings conversions are never applied.

Currently, only time zones defined in the OCS Resources are supported in WxML. These are listed in the table below.

WxML name

Time Zone

Offset from UTC

Greenwich

Greenwich Mean Time (GMT or UTC)

0

Central

Central Standard (CST) or
Daylight Time (CDT)

6 (standard)
5 (daylight)

Eastern

Eastern Standard (EST) or
Daylight (EDT) Time

5 (standard)
4 (daylight)

Mountain

Mountain Standard (MST)
or Daylight (MDT) Time

7 (standard)
6 (daylight)

Pacific

Pacific Standard (PST)
or Daylight (PDT) Time

8 (standard)
7 (daylight)

Confidential. Copyright © 2002, Oklahoma Climatological Survey. All Rights Reserved.
Send questions or comments concerning this web page to
wolfie@ou.edu.