Source

dateTime/getTimeInSeconds.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var SECONDS_IN_HOUR = 3600;
var SECONDS_IN_MIN = 60;
/**
 * Get the number of seconds contributing to the time (of a date)
 *
 * @author Sandy Lau https://github.com/sandylau333
 *
 * @param date
 * @category dateTime
 * @module getTimeInSeconds
 */
var getTimeInSeconds = function (date) { return ((date.getHours() * SECONDS_IN_HOUR)
    + (date.getMinutes() * SECONDS_IN_MIN)
    + date.getSeconds()); };
exports.default = getTimeInSeconds;