@lonu/stc
Version:
A tool for converting OpenApi/Swagger/Apifox into code.
31 lines • 961 B
TypeScript
/**
* Returns the number of the day in the year in the local time zone.
*
* @param date Date to get the day of the year of.
* @return Number of the day in the year in the local time zone.
*
* @example Basic usage
* ```ts
* import { dayOfYear } from "@std/datetime/day-of-year";
* import { assertEquals } from "@std/assert";
*
* assertEquals(dayOfYear(new Date("2019-03-11T03:24:00")), 70);
* ```
*/
export declare function dayOfYear(date: Date): number;
/**
* Returns the number of the day in the year in UTC time.
*
* @param date Date to get the day of the year of.
* @return Number of the day in the year in UTC time.
*
* @example Usage
* ```ts
* import { dayOfYearUtc } from "@std/datetime/day-of-year";
* import { assertEquals } from "@std/assert";
*
* assertEquals(dayOfYearUtc(new Date("2019-03-11T03:24:00.000Z")), 70);
* ```
*/
export declare function dayOfYearUtc(date: Date): number;
//# sourceMappingURL=day_of_year.d.ts.map