Learn R Programming

lutz (version 0.3.2)

tz_offset: Find the offset from UTC at a particular date/time in a particular time zone

Description

Find the offset from UTC at a particular date/time in a particular time zone

Usage

tz_offset(dt, tz = "")

Value

a one-row data frame with details of the time zone

Arguments

dt

Date, POSIXt or date-like character string

tz

A time zone name from base::OlsonNames(). Not required if dt is a POSIXt object with a time zone component.

Examples

Run this code
tz_offset("2018-06-12", "America/Moncton")

Run the code above in your browser using DataLab