Learn R Programming

timetools (version 1.5.2)

timezone: Get or set timezone property

Description

get or set the timezone of the time object (see timezone in the base package).

Usage

timezone(object)
  timezone(object) <- value

## S3 method for class 'POSIXst': timezone(object)

## S3 method for class 'SubtimeDataFrame': timezone(object)

## S3 method for class 'TimeInstantDataFrame': timezone(object) ## S3 method for class 'TimeInstantDataFrame': timezone(object) <- value

## S3 method for class 'TimeIntervalDataFrame': timezone(object) ## S3 method for class 'TimeIntervalDataFrame': timezone(object) <- value

Arguments

object
object to get or set timezone property.
value
specify the new value for timezone. See timezone in the base package.

Details

Changing the timezone of an object consist in reprojecting time coordinates from a system of reference to another. That is to say that not only the timezone attribute is changed : for instance '2012-02-01 14:OO UTC' will be changed in '2012-02-01 15:00 CET' if timezone is set to CET (French local time).