timeCeiling {splusTimeDate} | R Documentation |
Rounding Functions for timeDate Objects
Description
Rounds a time to the nearest day.
Usage
timeCeiling(x)
timeFloor(x)
timeTrunc(x)
Arguments
x |
an object of class |
Value
returns a positionsCalendar
object rounded to current or next day.
timeFloor and timeTrunc |
round a |
timeCeiling |
rounds a time to the beginning of the next day. |
See Also
ceiling
, floor
, trunc
, positionsCalendar-class
Examples
x <- timeDate(date(), in.format="%w %m %d %H:%M:%S %Y")
timeCeiling(x)
timeFloor(x)
[Package splusTimeDate version 2.5.8 Index]