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

x/complaindate/mod.ts>differenceInBusinessDays

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

Get a function curried with a plain-date, from which to get the number of crossings into non-weekend days between it and other plain-dates.

Parameters

A plain-date to calculate the difference from

Returns

(to: ComPlainDate) => number

A curried function that operates on plain-dates