is_weekday: Is 'x' a weekday?

View source: R/weekday.R

is_weekdayR Documentation

Is x a weekday?

Description

This function determines if the input is a weekday object.

Usage

is_weekday(x)

Arguments

x

⁠[object]⁠

An object.

Value

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

Examples

is_weekday(1)
is_weekday(weekday(1))

clock documentation built on May 31, 2023, 9:39 p.m.