securityos/node_modules/framer-motion/dist/es/utils/time-conversion.mjs

11 lines
328 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
/**
* Converts seconds to milliseconds
*
* @param seconds - Time in seconds.
* @return milliseconds - Converted time in milliseconds.
*/
const secondsToMilliseconds = (seconds) => seconds * 1000;
const millisecondsToSeconds = (milliseconds) => milliseconds / 1000;
export { millisecondsToSeconds, secondsToMilliseconds };