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(t)
calendar(t)
unit(t)
origin(t)
timezone(t)
offsets(t)
resolution(t)
Arguments
t |
An instance of |
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.
Functions
-
definition()
: The definition string of theCFTime
instance. -
calendar()
: The calendar of theCFTime
instance. -
unit()
: The unit of theCFTime
instance. -
origin()
: The origin of theCFTime
instance in timestamp elements. -
timezone()
: The time zone of the calendar of theCFTime
instance as a character string. -
offsets()
: The offsets of theCFTime
instance as a numeric vector. -
resolution()
: The average separation between the offsets in theCFTime
instance.
Examples
t <- CFtime("days since 1850-01-01", "julian", 0:364)
definition(t)
calendar(t)
unit(t)
timezone(t)
origin(t)
offsets(t)
resolution(t)