Rounds a time to the nearest day.
timeCeiling(x)
timeFloor(x)
timeTrunc(x)
returns a positionsCalendar
object rounded to current or next day.
timeFloor
and timeTrunc
round a positionsCalendar
object to the beginning of the day.
timeCeiling
rounds a time to the beginning of the next day.
an object of class positionsCalendar
x <- timeDate(date(), in.format="%w %m %d %H:%M:%S %Y")
timeCeiling(x)
timeFloor(x)
Run the code above in your browser using DataLab