UNPKG

457 BTypeScriptView Raw
1import type { Time } from './types.js';
2/**
3 * @name extractTime
4 * @summary Convert a quantity of seconds to Time array representing accumulated {days, minutes, hours, seconds, milliseconds}
5 * @example
6 * <BR>
7 *
8 * ```javascript
9 * import { extractTime } from '@polkadot/util';
10 *
11 * const { days, minutes, hours, seconds, milliseconds } = extractTime(6000); // 0, 0, 10, 0, 0
12 * ```
13 */
14export declare function extractTime(milliseconds?: number): Time;