GMTOffsetFromTz: Determine time offset from timezone

Description Usage Arguments Value Author(s) See Also Examples

View source: R/misc.R

Description

The data are from http://www.timeanddate.com/library/abbreviations/timezones/ and were hand-edited to develop this code, so there may be errors. Also, note that some of these contradict; if you examine the code, you'll see some commented-out portions that represent solving conflicting definitions by choosing the more common timezone abbreviation over a the less common one.

Usage

1

Arguments

tz

a timezone, e.g. UTC.

Value

Number of hours in offset, e.g. AST yields 4.

Author(s)

Dan Kelley

See Also

Other functions relating to time: decodeTime

Examples

1
2
library(oce)
cat("Atlantic Standard Time is ", GMTOffsetFromTz("AST"), "hours after UTC")

oce documentation built on May 29, 2017, 12:19 p.m.

Search within the oce package
Search all R packages, documentation and source code