rollback: Roll back date to last day of previous month
Description
rollback changes a date to the last day of the previous
month. The new date retains the same hour, minute, and
second information.
Usage
rollback(dates)
Arguments
dates
A POSIXct, POSIXlt or Date class object.
Value
A date-time object of class POSIXlt, POSIXct or Date,
whose day has been adjusted to the last day of the
previous month. date <- ymd("2010-03-03") # "2010-03-03
UTC" rollback(date) # "2010-02-28 UTC"