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

x/polkadot/util/index.ts>extractTime

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

Examples

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

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

Parameters

optional
milliseconds: number