Function dayOfYearUtc

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

    Parameters

    • date: Date

      Date to get the day of the year of.

    Returns number

    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);