subtime objects
.
For instance : month of year, minute of day, minute of week, etc.POSIXt.units(x = NULL, ...) unit(x, ...)
unit(object) <- value
of(x, ...)
## S3 method for class 'POSIXst':
unit(x, ...)
## S3 method for class 'POSIXst':
of(x, ...)
## S3 method for class 'POSIXctp':
unit(x, ...)
## S3 method for class 'POSIXctp':
unit(object) <- value
POSIXt.units
. The object from which
the time unit is to retrieve.POSIXt.units
indicating the new units of object.POSIXst
, the unit is the 'left' part of
its unit : if 'x' is a 'minute of day', 'unit' will return
'minute'.POSIXst
only, it return the 'right' part
of the unit of 'x' : if 'x' is a 'minute of day', 'of' will return
'day'.period objects
from its unit to
a new one (for instance, from 'year's to 'month's : 1 year = 12 months). The conversion will
be effective only if it makes sense (