dtt_floored {dttr2}R Documentation

Floored

Description

Test whether a date time vector is floored.

Usage

dtt_floored(x, ...)

## S3 method for class 'Date'
dtt_floored(x, units = "days", ...)

## S3 method for class 'POSIXct'
dtt_floored(x, units = "seconds", ...)

## S3 method for class 'hms'
dtt_floored(x, units = "seconds", ...)

Arguments

x

A Date, POSIXct or hms vector.

...

Unused.

units

A string of the time units to floor by.

Value

A flag indicating whether floored.

Methods (by class)

Examples

dtt_floored(as.Date("2002-02-01"))

[Package dttr2 version 0.3.0 Index]