mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Show a report for total users chart
This commit is contained in:
parent
794938db72
commit
4d064adf1b
5397 changed files with 313100 additions and 365 deletions
25
node_modules/date-fns/hoursToMilliseconds.js
generated
vendored
Normal file
25
node_modules/date-fns/hoursToMilliseconds.js
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { millisecondsInHour } from "./constants.js";
|
||||
|
||||
/**
|
||||
* @name hoursToMilliseconds
|
||||
* @category Conversion Helpers
|
||||
* @summary Convert hours to milliseconds.
|
||||
*
|
||||
* @description
|
||||
* Convert a number of hours to a full number of milliseconds.
|
||||
*
|
||||
* @param hours - number of hours to be converted
|
||||
*
|
||||
* @returns The number of hours converted to milliseconds
|
||||
*
|
||||
* @example
|
||||
* // Convert 2 hours to milliseconds:
|
||||
* const result = hoursToMilliseconds(2)
|
||||
* //=> 7200000
|
||||
*/
|
||||
export function hoursToMilliseconds(hours) {
|
||||
return Math.trunc(hours * millisecondsInHour);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default hoursToMilliseconds;
|
Loading…
Add table
Add a link
Reference in a new issue