go integration and wikipedia
This commit is contained in:
parent
47a252e339
commit
ee90335b92
7828 changed files with 1307913 additions and 20807 deletions
31
frontend/node_modules/date-fns/secondsToMinutes.mjs
generated
vendored
Normal file
31
frontend/node_modules/date-fns/secondsToMinutes.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { secondsInMinute } from "./constants.mjs";
|
||||
|
||||
/**
|
||||
* @name secondsToMinutes
|
||||
* @category Conversion Helpers
|
||||
* @summary Convert seconds to minutes.
|
||||
*
|
||||
* @description
|
||||
* Convert a number of seconds to a full number of minutes.
|
||||
*
|
||||
* @param seconds - The number of seconds to be converted
|
||||
*
|
||||
* @returns The number of seconds converted in minutes
|
||||
*
|
||||
* @example
|
||||
* // Convert 120 seconds into minutes
|
||||
* const result = secondsToMinutes(120)
|
||||
* //=> 2
|
||||
*
|
||||
* @example
|
||||
* // It uses floor rounding:
|
||||
* const result = secondsToMinutes(119)
|
||||
* //=> 1
|
||||
*/
|
||||
export function secondsToMinutes(seconds) {
|
||||
const minutes = seconds / secondsInMinute;
|
||||
return Math.trunc(minutes);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default secondsToMinutes;
|
||||
Loading…
Add table
Add a link
Reference in a new issue