Book Contents

Book Index

Next Topic

Home

Time Zone Values

Vertica attempts to be compatible with the SQL standard definitions for time zones. However, the SQL standard has an odd mix of date and time types and capabilities. Two obvious problems are:

To address these difficulties, Vertica recommends using date/time types that contain both date and time when using time zones. We recommend not using the type TIME WITH TIME ZONE (though it is supported by Vertica for legacy applications and for compliance with the SQL standard).

Time zones, and time-zone conventions, are influenced by political decisions, not just earth geometry. Time zones around the world became somewhat standardized during the 1900's, but continue to be prone to arbitrary changes, particularly with respect to daylight-savings rules.

Daylight saving time starts on March 11 at 2:00 am in 2007.

Vertica currently supports daylight-savings rules over the time period 1902 through 2038 (corresponding to the full range of conventional Unix system time). Times outside that range are taken to be in "standard time" for the selected time zone, no matter what part of the year they fall in. 

Example

Description

PST

Pacific Standard Time

-8:00

ISO-8601 offset for PST

-800

ISO-8601 offset for PST

-8

ISO-8601 offset for PST

zulu

Military abbreviation for UTC

z

Short form of zulu