registration
This commit is contained in:
11
frontend/style/node_modules/date-fns/secondsToHours.js
generated
vendored
11
frontend/style/node_modules/date-fns/secondsToHours.js
generated
vendored
@@ -1,6 +1,4 @@
|
||||
"use strict";
|
||||
exports.secondsToHours = secondsToHours;
|
||||
var _index = require("./constants.js");
|
||||
import { secondsInHour } from "./constants.js";
|
||||
|
||||
/**
|
||||
* @name secondsToHours
|
||||
@@ -24,7 +22,10 @@ var _index = require("./constants.js");
|
||||
* const result = secondsToHours(7199)
|
||||
* //=> 1
|
||||
*/
|
||||
function secondsToHours(seconds) {
|
||||
const hours = seconds / _index.secondsInHour;
|
||||
export function secondsToHours(seconds) {
|
||||
const hours = seconds / secondsInHour;
|
||||
return Math.trunc(hours);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default secondsToHours;
|
||||
|
||||
Reference in New Issue
Block a user