force.tz: force timezones.

Description Usage Arguments Details Note

View source: R/utils.R

Description

force timezones.

Usage

1
force.tz(x, new.tz, diff.tz = NULL)

Arguments

x

A POSIXct object

new.tz

time zone to convert to

diff.tz

Optional. The difference between the current and the new timezone, if known. Note that providing this variable will increase the speed of the function 100-fold. Defaults to NULL, in which case the difference is calculated.

Details

Note if diff.tz is not supplied, this is time-consuming because it uses substring (ca. 1.5 seconds/100000 items). However, if diff.tz is not supplied should handle CET/CEST and other time-zone mixes correctly.

Note

Note that the time zones that are defined by its offset to UTC are coded e.g. "Etc/GMT-2", where the sign of the code is opposite to the expectation: "Etc/GMT-2" refers to the time zone GMT+2 (which is also printed).


mpio-be/SNB2 documentation built on March 27, 2020, 8:33 p.m.