tz_conversion: Timezone_conversion converts a specified time in city1 to the...

Description Usage Arguments Value Examples

Description

Timezone_conversion converts a specified time in city1 to the time in city2.

Usage

1
tz_conversion(city2, city1 = Sys.timezone(), time = Sys.time())

Arguments

city2

name of city the user wants time to be converted to

city1

name of source time city. Default is system timezone

time

time of source time city, format YYYY-MM-DD HH:MM:SS. Default is system time

Value

time in desired city

Examples

1
2
tz_conversion("Singapore")
tz_conversion("Cape_Town", "Singapore", "2017-07-03 20:00:00")

megan-dickson/TimePackage documentation built on May 19, 2019, 8:23 a.m.