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

/**
 * The number of milliseconds in a second.
 *
 * @example
 * ```ts
 * import { SECOND } from "@std/datetime/constants";
 *
 * SECOND; // 1_000
 * ```
 */
export const SECOND = 1e3;
/**
 * The number of milliseconds in a minute.
 *
 * @example
 * ```ts
 * import { MINUTE } from "@std/datetime/constants";
 *
 * MINUTE; // 60_000
 * ```
 */
export const MINUTE: number = SECOND * 60;
/**
 * The number of milliseconds in an hour.
 *
 * @example
 * ```ts
 * import { HOUR } from "@std/datetime/constants";
 *
 * HOUR; // 3_600_000
 * ```
 */
export const HOUR: number = MINUTE * 60;
/**
 * The number of milliseconds in a day.
 *
 * @example
 * ```ts
 * import { DAY } from "@std/datetime/constants";
 *
 * DAY; // 86_400_000
 * ```
 */
export const DAY: number = HOUR * 24;
/**
 * The number of milliseconds in a week.
 *
 * @example
 * ```ts
 * import { WEEK } from "@std/datetime/constants";
 *
 * WEEK; // 604_800_000
 * ```
 */
export const WEEK: number = DAY * 7;

// denoCacheMetadata={"headers":{"nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=uCXy0TbjboHl9K9jDi1TqH352QQ0Bso7rlClHKqZz%2FoLvKCIRFgXn3D1f57eVuyO5Urv3KfZMbVG5i1UJV0qL9bS%2FXjGx0j%2BQJbqEZzEgQN7fWzstOh9rPc%3D\"}]}","x-jsr-backend":"modules","cache-control":"public, max-age=31536000, immutable","etag":"\"9eabfc3d31ff7cc69ff748a1afafdbca\"","cf-ray":"a223e6564f537db6-LAX","x-content-type-options":"nosniff","access-control-expose-headers":"*","set-cookie":"__cf_bm=ZP3_BduMXP95kiadO38eoWRHrVoEL3mvGIU6cmM_Ams-1785241874.9698465-1.0.1.1-ch2K67.759jvC5iH43UcY.ujqnor2jr_WciYmo6Bk9PnnPYYjY5LKtuSLfNhJHB790nTHJwU4f28ERDLgF.9UQn2AwRT0rNHJDuceHjmSYdbwZjwJ9Z_QMEwa2iOUiHX; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","alt-svc":"h3=\":443\"; ma=86400","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';","date":"Tue, 28 Jul 2026 12:31:15 GMT","content-type":"text/typescript","cross-origin-resource-policy":"cross-origin","content-length":"1086","vary":"Origin","x-robots-tag":"noindex","server":"cloudflare","access-control-allow-origin":"*"},"url":"https://jsr.io/@std/datetime/0.224.5/constants.ts","time":1785241875}