UNPKG

our-dates

Version:

A simple date utility library for Javascript

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