is_duration {clock}R Documentation

Is x a duration?

Description

This function determines if the input is a duration object.

Usage

is_duration(x)

Arguments

x

⁠[object]⁠

An object.

Value

TRUE if x inherits from "clock_duration", otherwise FALSE.

Examples

is_duration(1)
is_duration(duration_days(1))

[Package clock version 0.7.1 Index]