// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

/**
 * Utilities for dealing with {@linkcode Date} objects.
 *
 * ```ts
 * import { dayOfYear, isLeap, difference } from "@std/datetime";
 * import { assertEquals } from "@std/assert";
 *
 * assertEquals(dayOfYear(new Date("2019-03-11T03:24:00")), 70);
 * assertEquals(isLeap(1970), false);
 *
 * const date0 = new Date("2018-05-14");
 * const date1 = new Date("2020-05-13");
 * assertEquals(difference(date0, date1).years, 1);
 * ```
 *
 * @module
 */
export * from "./constants.ts";
export * from "./day_of_year.ts";
export * from "./difference.ts";
export * from "./format.ts";
export * from "./is_leap.ts";
export * from "./parse.ts";
export * from "./week_of_year.ts";

// denoCacheMetadata={"headers":{"nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","set-cookie":"__cf_bm=3doTxX4zs2CDjeC9sNQvVDuzhmUwo0G3.TteZmm.hKc-1785241874.9311073-1.0.1.1-LaK7qCpSri_ETrEgIvrBT9LugBs3wtMhRVMhxwArUc_MY2icGnIz8V47U7g_6d8HMaX1lQhe0jI_ULUnATL0iC4kMIUCW7INql5Bg5Z0TGCpZarO.GoeNXTjFx361bwL; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","server":"cloudflare","access-control-expose-headers":"*","alt-svc":"h3=\":443\"; ma=86400","cf-ray":"a223e6564e817db6-LAX","vary":"Origin","x-jsr-backend":"modules","content-type":"text/typescript","x-content-type-options":"nosniff","etag":"\"e681617536047e1a717f6706c5bd5a95\"","date":"Tue, 28 Jul 2026 12:31:15 GMT","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=D2bYWkw4xjOaH%2Bh2EokGEETIwIGHdRbimsQgIvrWADeRldGCPhpJhi0a%2B8ZYIDUc2paxiB1lK3o1ufiVm17iJtomRE%2F6wo9A52Ovmx5VcSiU9yFyCahBENw%3D\"}]}","access-control-allow-origin":"*","cache-control":"public, max-age=31536000, immutable","x-robots-tag":"noindex","cross-origin-resource-policy":"cross-origin","content-length":"788"},"url":"https://jsr.io/@std/datetime/0.224.5/mod.ts","time":1785241875}