Skip to main content
Module

x/durationjs/mod.ts>Duration#setMilliseconds

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

Set milliseconds of the duration.

Parameters

n: number

Number of milliseconds to set.

Returns

The updated duration.