Creates a duration in months (converted to milliseconds).
WHY: Provides a more readable way to specify durations in months. Uses 30.4 days as average month length for accuracy.
number of months
milliseconds equivalent (rounded)
const subscriptionExpiry = months(1); // 1 month subscriptionsetTimeout(fn, months(3)); // Quarterly task Copy
const subscriptionExpiry = months(1); // 1 month subscriptionsetTimeout(fn, months(3)); // Quarterly task
Creates a duration in months (converted to milliseconds).
WHY: Provides a more readable way to specify durations in months. Uses 30.4 days as average month length for accuracy.