powered by
is_jdate() checks whether an object is of class jdate.
is_jdate()
jdate
is_jdatetime() checks whether an object is of class jdatetime.
is_jdatetime()
jdatetime
is_jdate(x)is_jdatetime(x)
is_jdatetime(x)
TRUE or FALSE.
TRUE
FALSE
An object to test.
is_jdate(jdate_now() + 1) # TRUE is_jdatetime(jdatetime_now() + as.difftime(2, units = "hours")) # TRUE
Run the code above in your browser using DataLab