Learn R Programming

shide (version 0.2.1)

sh_tzone: Get the time zone component of jdatetime objects

Description

Get the time zone component of jdatetime objects

Usage

sh_tzone(x)

# S3 method for jdatetime sh_tzone(x)

Value

A character vector of length 1. An empty string represents the current local time zone.

Arguments

x

A vector of jdatetime objects.

Details

This function is only valid for jdatetime objects. jdate objects do not have time zone attribute.

Examples

Run this code
x <- jdatetime("1402-12-14 19:13:31", tzone = "Iran")
sh_tzone(x)

Run the code above in your browser using DataLab