Skip to main content
Module

x/complaindate/mod.ts>differenceInMonths

JavaScript date-time utilities that keep timezones on the surface
Latest
function differenceInMonths
import { differenceInMonths } from "https://deno.land/x/complaindate@v1.0.1/mod.ts";

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