definition {CFtime}R Documentation

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(cf)

calendar(cf)

unit(cf)

origin(cf)

timezone(cf)

offsets(cf)

resolution(cf)

Arguments

cf

CFtime. An instance of CFtime.

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 datum time zone as a character string. offsets() returns a vector of offsets or NULL if no offsets have been set.

Functions

Examples

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

[Package CFtime version 1.4.0 Index]