TransTz: Translate (i.e. invert) timezones to the so calle Olson names...

Description Usage Arguments Examples

Description

Translate formatted timezones codes to the so-called "Olson names" used by POSIXct. TransTz translates the formatted timezone codes (incl those from USGS) to Olson Names.

Usage

1
TransTz(tz)

Arguments

tz

The timezone to be translated.

Examples

1
2
3
4
5
6
as.POSIXct('2012-01-01')
as.POSIXct('2012-01-01', tz='US/Pacific')
format(as.POSIXct('2012-01-01', tz='US/Pacific'),'%Z')
TransTz(format(as.POSIXct('2012-01-01', tz='US/Pacific'),'%Z'))
lubridate::with_tz(as.POSIXct('2012-01-01'),
                   TransTz(format(as.POSIXct('2012-01-01', tz='US/Pacific'),'%Z')))

mccreigh/rwrfhydro documentation built on Feb. 28, 2021, 1:53 p.m.