Returns the number of the day in the year in UTC time.
Date to get the day of the year of.
Number of the day in the year in UTC time.
import { dayOfYearUtc } from "@std/datetime/day-of-year";import { assertEquals } from "@std/assert";assertEquals(dayOfYearUtc(new Date("2019-03-11T03:24:00.000Z")), 70); Copy
import { dayOfYearUtc } from "@std/datetime/day-of-year";import { assertEquals } from "@std/assert";assertEquals(dayOfYearUtc(new Date("2019-03-11T03:24:00.000Z")), 70);
Returns the number of the day in the year in UTC time.