UNPKG

our-dates

Version:

A simple date utility library for Javascript

17 lines (16 loc) 462 B
"use strict"; /** * @name secondsToMilliseconds * @description Convert seconds to milliseconds. * * @param {number} seconds quantity of seconds for convert * @returns {number} milliseconds refer the seconds quantity * * @example * secondsToMilliseconds(2) //2000 */ Object.defineProperty(exports, "__esModule", { value: true }); function secondsToMilliseconds(seconds) { return Math.floor(seconds * 1000); } exports.default = secondsToMilliseconds;