Skip to main content
Module

x/durationjs/mod.ts>default.getCurrentDuration

Get the formated time duration
Go to Latest
method default.getCurrentDuration
import { default } from "https://deno.land/x/durationjs@v4.1.0/mod.ts";

Get the duration till next midnight in milliseconds.

Returns

number

Duration in milliseconds till the next midnight