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)


skgrange/waclr documentation built on June 30, 2024, 10:25 p.m.