is_year_month_day: Is 'x' a year-month-day?

View source: R/gregorian-year-month-day.R

is_year_month_dayR Documentation

Is x a year-month-day?

Description

Check if x is a year-month-day.

Usage

is_year_month_day(x)

Arguments

x

⁠[object]⁠

An object.

Value

Returns TRUE if x inherits from "clock_year_month_day", otherwise returns FALSE.

Examples

is_year_month_day(year_month_day(2019))

clock documentation built on Sept. 11, 2024, 8:39 p.m.