Learn R Programming

CFtime (version 1.6.0)

definition: Properties of a CFTime object

Description

These functions return the properties of an instance of the CFTime class. The properties are all read-only, but offsets can be added using the + operator.

Usage

definition(t)

calendar(t)

unit(t)

origin(t)

timezone(t)

offsets(t)

resolution(t)

Value

calendar() and unit() return a character string. origin() returns a data frame of timestamp elements with a single row of data. timezone() returns the calendar time zone as a character string. offsets() returns a vector of offsets or NULL if no offsets have been set.

Arguments

t

An instance of CFTime.

Functions

  • definition(): The definition string of the CFTime instance.

  • calendar(): The calendar of the CFTime instance.

  • unit(): The unit of the CFTime instance.

  • origin(): The origin of the CFTime instance in timestamp elements.

  • timezone(): The time zone of the calendar of the CFTime instance as a character string.

  • offsets(): The offsets of the CFTime instance as a numeric vector.

  • resolution(): The average separation between the offsets in the CFTime instance.

Examples

Run this code
t <- CFtime("days since 1850-01-01", "julian", 0:364)
definition(t)
calendar(t)
unit(t)
timezone(t)
origin(t)
offsets(t)
resolution(t)

Run the code above in your browser using DataLab