tzmanager: Time Zone Manager

Description Usage Arguments See Also Examples

Description

This function calculated the difference between a time zone tz and Greenwhich Mean Time or viceversa.

Usage

1
2
tzmanager(tz = Sys.timezone(location = TRUE), returns.string = TRUE,
  when = as.character(Sys.Date()), offset.sign = NA)

Arguments

tz

time zone (string character or number)

returns.string

lofical. If it is TRUE (default), the return value is always coerced to a character string

when

string character indicating a reference date (YYYY-MM-DD). See default.

offset.sign

offset signum. It can be c(NA,-1,1). Default is NA and mans that is set to 1 except for the case where tz appears like Etc/GMT+n (where n is interpreted in an opposite way for most operative systems, see latest lines on timezones)) and is set -1.

See Also

timezones),http://en.wikipedia.org/wiki/ISO_8601#Dates

Examples

1
2
3
4
5
6
tz <- Sys.timezone()

difftz <- tzmanager(tz=tz)
difftznum <- tzmanager(tz=tz,returns.string=FALSE)

tz_v2 <- tzmanager(tz=difftznum)

ecor/ncdf4df documentation built on May 15, 2019, 10:06 p.m.