is_jdate: Check an object for its class

View source: R/jdate.R

is_jdateR Documentation

Check an object for its class

Description

  • is_jdate() checks whether an object is of class jdate.

  • is_jdatetime() checks whether an object is of class jdatetime.

Usage

is_jdate(x)

is_jdatetime(x)

Arguments

x

An object to test.

Value

TRUE or FALSE.

Examples

is_jdate(jdate_now() + 1) # TRUE
is_jdatetime(jdatetime_now() + as.difftime(2, units = "hours")) # TRUE

shide documentation built on Sept. 11, 2024, 6:37 p.m.