Learn R Programming

CFtime (version 1.4.1)

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

calendar(cf)

unit(cf)

origin(cf)

timezone(cf)

offsets(cf)

resolution(cf)

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.

Arguments

cf

CFtime. 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 datum of the CFtime instance as a character string

  • offsets(): The offsets of the CFtime instance as a vector

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

Examples

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

Run the code above in your browser using DataLab