UNPKG

@technobuddha/library

Version:
21 lines (20 loc) 540 B
/** * Options for the {@link getEndOfYear} function * @group Time * @category Year */ export type EndOfYearOptions = { /** Use the utc timezone */ utc?: boolean; }; /** * Determine the last day of the year containing a date * * @param input - The date * @param options - see {@link EndOfYearOptions} * @defaultValue utc false * @returns Midnight of the last day of the year containing the input date * @group Time * @category Year */ export declare function getEndOfYear(input: Date, { utc }?: EndOfYearOptions): Date;