Field Descriptions

A description of the eleven fields in each row of the time zone database.

Optional Fields - Daylight Savings

Daylight savings time is optional. Many time zones do not use daylight savings time. The time zone software insists that daylight savings time either be wholly present or wholly absent. An error message is generated if this is not true. A missing field is indicated by simply using a comma to skip to the next field. Thus, for Japan Standard Time, there is no daylight savings time and the entry would be similar to:

ID - "Asia/Japan"

STD Abbr - "JST

STD Name - "Japan Standard Time

DST Abbrev - empty

DST Name - empty

GMT Offset - +09:00

DST Adjustment - empty

DST Start Rule - empty

DST Start Time - empty

DST End Date Rule - empty

DST End Time - empty

Warning!  

The Sybase CEP Time Zone Database stores only one set of information about each time zone. This means that when rules (for example, for daylight savings time) are updated, Sybase CEP knows only the current rules. Thus, for example, if in the year 2007 you change the starting date of daylight savings time from "the first Sunday in April" to "the second Sunday in March", then after you update the Sybase CEP time zone database, Sybase CEP will treat the second Sunday in March as the start of daylight savings time, even for years prior to 2007.

CCL Abbreviations

The fields in the time zone CSV database are used by the Sybase CEP software to link external time zone names to the proper time calculations. Within the time zone database, the following must be unique within the entire database:

  • ID.

  • STD Abbreviation.

  • DST Abbreviation.

This uniqueness allows users to identify time zones in various ways. The identification applies to both input and output of time zones.

  • ID maps to TZR, the Time Zone Region. This is output only.

  • STD abbreviation maps to TZD, the Time Zone Designator. Use in the input or output.

  • DST abbreviation maps to TZD as well. Use this in input or output.

  • TZH:TZM displays as time zone hours and minutes from GMT. This is output only. While TZH and TZM are typically displayed together, they may be separated and placed however you desire.

Standard and Daylight savings time abbreviations can be used interchangeably. The Sybase CEP software can, if applicable, modify the time for daylight savings and interpret the appropriate STD or DST abbreviation. As in all date-time format strings, multiple uses of the same format code are illegal on input, but are legal in output formats. Thus the following is illegal because multiple TZD formats are illegal for input:

TO_TIMESTAMP("2002-06-18 PDT13:52:00.123456 PST, 
   "YYYY-MM-DD TZDHH24:MI:SS.ff TZD");

An output request allows multiple format requests:

TO_STRING(ts, "YYYY-MM-DD TZDTZDTZD", PDT) 
   yields: "2006-06-18 PDTPDTPDT