Generic functions to extract properties of "timeDate"
objects. julian
and months
are generics from base R,
while atoms
is a generic defined in this package.
julian
extracts the number of days since origin
(can be
fractional), see also julian
.
atoms
extracts the calendar atoms from a "timeDate"
object, i.e., the year, month, day, and optionally, hour, minute and
second. The result is a data frame with the financial center in
atrribute "control"
.
months
extracts the months, see section ‘Note’.
The dollar operator applied to a "timeDate"
object,
e.g. td$name
, extracts a component of the date/time values as a
numeric vector. Currently, name
can be one of year
,
month
, day
, hour
, minute
, second
,
wday
(or weekday
), wday0
(or weekday0
),
and quarter
. wday0
(weekday0
) starts with 0 (for
Sunday), the meaning of the rest should be clear.
In interactive sessions, completion is available for the dollar
operator.