UNPKG

@technobuddha/library

Version:
15 lines (14 loc) 427 B
declare type Options = { /** Use the UTC timezone */ UTC?: boolean; }; /** * Determine the start of the year for a date * * @param input The date * @param __namedParameters see {@link Options} * @default UTC false * @returns The date value for midnight on the first day of the specified year */ export declare function getBeginningOfYear(input: Date, { UTC }?: Options): Date; export default getBeginningOfYear;