powered by
Find the offset from UTC at a particular date/time in a particular time zone
tz_offset(dt, tz = "")
a one-row data frame with details of the time zone
Date, POSIXt or date-like character string
Date
POSIXt
A time zone name from base::OlsonNames(). Not required if dt is a POSIXt object with a time zone component.
base::OlsonNames()
dt
tz_offset("2018-06-12", "America/Moncton")
Run the code above in your browser using DataLab