Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/complaindate/utils/daysInYear.ts>daysInYear

JavaScript date-time utilities that keeps timezones on the surface
Go to Latest
function daysInYear
import { daysInYear } from "https://deno.land/x/complaindate@v0.7.2/utils/daysInYear.ts";

Get the number of days in the year of a given date.

Leap years have 366 days, otherwise 365.

Parameters

unnamed 0: { year: number | string; }

Returns

number