dayOfYearUtc

import { dayOfYearUtc } from "jsr:@ende/datetime";

function

function dayOfYearUtc(date: Date): number

Returns the number of the day in the year in UTC time.

date: Date

Date to get the day of the year of.

Returns

Number of the day in the year in UTC time.

Example: Usage

import { dayOfYearUtc } from "@ende/datetime/day-of-year";
import { assertEquals } from "@ende/assert";

assertEquals(dayOfYearUtc(new Date("2019-03-11T03:24:00.000Z")), 70);

Source