UNPKG

@mdf.js/utils

Version:

MMS - API Core - Common utils tools

26 lines 689 B
/** * Copyright 2024 Mytra Control S.L. All rights reserved. * * Use of this source code is governed by an MIT-style license that can be found in the LICENSE file * or at https://opensource.org/licenses/MIT. */ import { TimeComponents } from './TimeComponents.i'; /** * Parse milliseconds into an object. * @example * ``` * import parseMilliseconds from 'parse-ms'; * parseMilliseconds(1337000001); * // { * // days: 15, * // hours: 11, * // minutes: 23, * // seconds: 20, * // milliseconds: 1, * // microseconds: 0, * // nanoseconds: 0 * // } * ``` */ export declare function parseMS(milliseconds: number): TimeComponents; //# sourceMappingURL=parseMS.d.ts.map