UNPKG

@technobuddha/library

Version:
20 lines (19 loc) 496 B
/** * Options for the {@link getDayOfYear} function * * @group Time * @category Year */ export type DayOfYearOptions = { utc?: boolean; }; /** * Calculates the day of the year for a given date. * * @param input - The date for which to calculate the day of the year. * @param options - Optional settings. * @returns The day of the year as a number (1-based). * @group Time * @category Year */ export declare function getDayOfYear(input: Date, { utc }?: DayOfYearOptions): number;