time_zone: Function to extract time-zone from a POSIXct date.

View source: R/lubridate_supplements.R

time_zoneR Documentation

Function to extract time-zone from a POSIXct date.

Description

Function to extract time-zone from a POSIXct date.

Usage

time_zone(date)

Arguments

date

Date vector

Value

Character vector with a length of one.

Author(s)

Stuart K. Grange

Examples


# A date vector
x <- lubridate::ymd_h("2018-05-05 11", tz = "Europe/Zurich")
time_zone(x)


wacl-york/waclr documentation built on Dec. 8, 2022, 7:05 p.m.