mikaelvesavuori/chrono-utils

View on GitHub
src/getMillisecondsForDays.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @description Returns the number of milliseconds for a count of days.
 *
 * @example getMillisecondsForDays(3);
 *
 * @returns `259200000`
 */
export const getMillisecondsForDays = (days: number) => 24 * 60 * 60 * 1000 * days; // hours x minutes x seconds