UNPKG

our-dates

Version:

A simple date utility library for Javascript

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