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

x/polkadot/util/mod.ts>extractTime

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

Examples

import { extractTime } from 'https://deno.land/x/polkadot@0.2.14/util/mod.ts';

const { days, minutes, hours, seconds, milliseconds } = extractTime(6000); // 0, 0, 10, 0, 0

Parameters

optional
milliseconds: number