Skip to main content
Module

x/complaindate/mod.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/mod.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