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

Set milliseconds of the duration.

Parameters

n: number

Number of milliseconds to set.

Returns

The updated duration.