Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
570 B
Plaintext
24 lines
570 B
Plaintext
/**
|
|
* @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 declare function secondsToMinutes(seconds: number): number;
|