@technobuddha/library
Version: 
A large library of useful functions
22 lines (21 loc) • 536 B
TypeScript
/**
 * Options for the {@link getDaysInMonth} function
 *
 * @group Time
 * @category Month
 */
export type DaysInMonthOptions = {
    /** Use the utc timezone */
    utc?: boolean;
};
/**
 * Determine the number of days in the month for a date
 *
 * @param input - The date
 * @param options - see {@link DaysInMonthOptions}
 * @defaultValue utc false
 * @returns The number of days in the specified month
 * @group Time
 * @category Month
 */
export declare function getDaysInMonth(input: Date, { utc }?: DaysInMonthOptions): number;