The end (ceiling) of a decade

ceiling_decade(x)

Arguments

x

a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, or fts object.

Value

the end of the decade as a Date object

Examples

ceiling_decade("2017-10-22 15:01:00")
#> [1] "2019-12-31 UTC"