Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/durationjs/src/duration.ts>default#setDays

Get the formated time duration
Latest
method default.prototype.setDays
import { default } from "https://deno.land/x/durationjs@v4.1.1/src/duration.ts";

Set days of the duration.

Parameters

n: number

Number of days to set.

Returns

The updated duration.