getHolidays: Compute holidays or business days

View source: R/RcppExports.R

getHolidaysR Documentation

Compute holidays or business days

Description

Compute the number of holidays (or business days) between two dates

Usage

getHolidays(from, to, includeWeekends = FALSE, xp = NULL)

getBusinessDays(from, to, xp = NULL)

Arguments

from

A Date object with the start date

to

A Date object with the end date

includeWeekends

A boolean indicating if weekends should be included, default is ‘FALSE’

xp

An optional calendar object, if missing the default instance is used

Details

This function takes a start and end date and returns a vector of holidays (or business days) between them according to the active calendar.

Value

A Date vector with holidays or business days between the given dates

Examples

getHolidays(Sys.Date(), Sys.Date() + 30)

qlcal documentation built on Feb. 18, 2026, 5:07 p.m.