Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method Duration.getCurrentDuration
import { Duration } from "https://deno.land/x/durationjs@v4.1.1/src/duration.ts";

Get the duration till next midnight in milliseconds.

Returns

number

Duration in milliseconds till the next midnight