Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/complaindate/utils/daysInYear.ts>daysInYear

JavaScript date-time utilities that keep timezones on the surface
Latest
function daysInYear
import { daysInYear } from "https://deno.land/x/complaindate@v1.0.1/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