The possible units values are 'seconds', 'minutes', 'hours', 'days', 'months' or 'years'.

dtt_floored(x, units = dtt_units(x))

Arguments

x

A Date or POSIXct vector.

units

A string of the units to floor by.

...

Unused.

Value

A flag indicating whether floored.

Examples

dtt_floored(Sys.time(), "hours")
#> [1] FALSE