Skip to main content
Module

x/complaindate/mod.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/mod.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