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

x/complaindate/utils/differenceInMilliseconds.ts>differenceInMilliseconds

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

Get a function curried with a native JS Date, from which to get the number of milliseconds between it and other JS Date objects.

Parameters

from: Date

A native JS Date object to calculate the difference from

Returns

(to: Date) => number

A curried function that operates on JS Date objects