Creates a duration in days (converted to milliseconds).
WHY: Provides a more readable way to specify durations in days.
number of days
milliseconds equivalent
const cacheExpiry = days(7); // 7 days = 604800000mssetTimeout(cleanup, days(30)); // 30 day cleanup cycle Copy
const cacheExpiry = days(7); // 7 days = 604800000mssetTimeout(cleanup, days(30)); // 30 day cleanup cycle
Creates a duration in days (converted to milliseconds).
WHY: Provides a more readable way to specify durations in days.