@technobuddha/library
Version:
A large library of useful functions
11 lines (10 loc) • 383 B
TypeScript
import { type DateOptions } from './date.ts';
/**
* 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 dayOfYear(input: Date, { utc }?: DateOptions): number;