Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/complaindate/mod.ts>addBusinessDays

JavaScript date-time utilities that keeps timezones on the surface
Go to Latest
function addBusinessDays
import { addBusinessDays } from "https://deno.land/x/complaindate@v0.7.2/mod.ts";

Get a function curried with a number of business days to add to its plain-date arguments.

Business days are Monday–Friday.

Parameters

businessDays: number

The number of business days to add or subtract

Returns

<T extends ComPlainDate>(date: T) => T

A curried function that operates on plain-dates