Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/complaindate/utils/differenceInMilliseconds.ts>differenceInMilliseconds

JavaScript date-time utilities that keep timezones on the surface
Latest
function differenceInMilliseconds
import { differenceInMilliseconds } from "https://deno.land/x/complaindate@v1.0.1/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