Extract time zone from calendars

# S3 method for Calendar
tz(x)

# S3 method for JointCalendar
tz(x)

Arguments

x

an instance of a Calendar or JointCalendar object

Value

a string representing the time zone (e.g. "Australia/Sydney") or vector of time zones in the case of joint calendars

See also

Other calendar methods: adjust, generate_schedule, is_good, is_valid_bdc, is, locale, shift

Examples

lubridate::tz(AUSYCalendar())
#> [1] "Australia/Sydney"
lubridate::tz(c(AUSYCalendar(), AUMECalendar()))
#> [1] "Australia/Sydney" "Australia/Melbourne"