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

x/complaindate/utils/differenceInDays.ts>differenceInDays

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

Get a function curried with a plain-date, from which to get the number of crossings into 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