tz_name: Extract timezone from an object

tz_nameR Documentation

Extract timezone from an object

Description

Generic function to extract the timezone from objects that have timezone information.

Usage

tz_name(x, ...)

Arguments

x

An object with timezone information.

...

Additional arguments passed to methods.

Value

A character vector representing the timezone of each time point (e.g., "America/New_York", "UTC").

Examples

tz_name(Sys.time())
tz_name(as.POSIXct("2024-06-15 12:00:00", tz = "America/New_York"))


mixtime documentation built on Nov. 18, 2026, 5:08 p.m.