Skip to main content
Module

x/durationjs/mod.ts>default#setNanoseconds

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

Set nanoseconds of the duration.

Parameters

n: number

Number of nanoseconds to set.

Returns

The updated duration.