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

x/polkadot/util/format/formatElapsed.ts>formatElapsed

Package publishing for deno.land/x/polkadot
Go to Latest
function formatElapsed
import { formatElapsed } from "https://deno.land/x/polkadot@0.2.38/util/format/formatElapsed.ts";

Type Parameters

ExtToBn extends ToBn

Parameters

optional
now: Date | null
optional
value:
| bigint
| BN
| Date
| number
| null

Returns

string