{
  "id": "@typed/id#DateTimes",
  "canonicalId": "@typed/id#DateTimes",
  "symbol": {
    "id": "@typed/id#DateTimes",
    "packageName": "@typed/id",
    "moduleName": ".",
    "exportName": "DateTimes",
    "kind": "class",
    "signatures": [
      "export declare class DateTimes extends DateTimes_base {\n    static readonly now: Effect.Effect<number, never, DateTimes>;\n    static readonly date: Effect.Effect<Date, never, DateTimes>;\n    static readonly Default: Layer.Layer<DateTimes, never, never>;\n    static readonly Fixed: (baseDate: number | string | Date) => Layer.Layer<DateTimes, Cause.IllegalArgumentError, never>;\n}"
    ],
    "summary": "Effect service for current epoch milliseconds and Date values.",
    "sections": {
      "Why": "Making time a service keeps time-based ID generators deterministic under tests and explicit under server or browser runtimes.",
      "Ownership and lifetime": "A DateTimes Layer owns its time source for the Layer lifetime; individual reads acquire no resources.",
      "Property: Default": "Provides DateTimes using the runtime wall clock.",
      "Property: Default: Why": "The production default is explicit and replaceable rather than hidden in each generator.",
      "Property: Default: Ownership and lifetime": "The surrounding Layer Scope owns the service; reads allocate only their returned Date values.",
      "Property: Fixed": "Provides DateTimes anchored to a base date and advanced by Effect Clock.",
      "Property: Fixed: Why": "Clock-relative time supports deterministic tests while still allowing controlled advancement; invalid bases fail with `IllegalArgumentError`.",
      "Property: Fixed: Ownership and lifetime": "Layer acquisition captures the base and current Clock reading; the surrounding Layer Scope owns that state.",
      "Property: date": "Reads a Date from the current DateTimes service.",
      "Property: date: Why": "The Date view stays aligned with the same replaceable time source as epoch-millisecond reads.",
      "Property: date: Ownership and lifetime": "This Effect acquires no resources and uses the DateTimes service for one invocation.",
      "Property: now": "Reads epoch milliseconds from the current DateTimes service.",
      "Property: now: Why": "A service-backed read avoids hard-wiring `Date.now` into generators and tests.",
      "Property: now: Ownership and lifetime": "This Effect acquires no resources and uses the DateTimes service for one invocation."
    },
    "examples": [
      {
        "language": "text",
        "code": "```ts\nimport { DateTimes } from \"@typed/id/DateTimes\"\nimport { Effect } from \"effect\"\nconst now = Effect.provide(DateTimes.now, DateTimes.Default)\n```\nSee [Effect Clock](https://effect.website/docs/testing/testclock/)."
      },
      {
        "language": "ts",
        "code": "import { DateTimes } from \"@typed/id/DateTimes\"\nconst fixed = DateTimes.Fixed(\"2026-01-01T00:00:00Z\")"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/id/src/DateTimes.ts",
      "line": 24
    },
    "since": "1.0.0",
    "category": "Time services"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/id#DateTimes",
    "packageName": "@typed/id",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/id",
    "exportName": "DateTimes",
    "qualifiedName": "DateTimes",
    "declarationKey": "declaration:fb2da904711168f87fb374a1",
    "family": "class",
    "signatures": [
      "export declare class DateTimes extends DateTimes_base {\n    static readonly now: Effect.Effect<number, never, DateTimes>;\n    static readonly date: Effect.Effect<Date, never, DateTimes>;\n    static readonly Default: Layer.Layer<DateTimes, never, never>;\n    static readonly Fixed: (baseDate: number | string | Date) => Layer.Layer<DateTimes, Cause.IllegalArgumentError, never>;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 24,
          "column": 1
        },
        "end": {
          "line": 103,
          "column": 2
        }
      },
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 63,
          "column": 3
        },
        "end": {
          "line": 63,
          "column": 69
        }
      },
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 80,
          "column": 3
        },
        "end": {
          "line": 102,
          "column": 7
        }
      },
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 51,
          "column": 3
        },
        "end": {
          "line": 51,
          "column": 72
        }
      },
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 40,
          "column": 3
        },
        "end": {
          "line": 40,
          "column": 69
        }
      }
    ],
    "aliases": [
      "@typed/id/DateTimes#DateTimes"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:fb2da904711168f87fb374a1",
    "name": "DateTimes",
    "family": "class",
    "facets": [
      {
        "family": "class",
        "syntaxKind": "ClassDeclaration",
        "signatures": [
          "export declare class DateTimes extends DateTimes_base {\n    static readonly now: Effect.Effect<number, never, DateTimes>;\n    static readonly date: Effect.Effect<Date, never, DateTimes>;\n    static readonly Default: Layer.Layer<DateTimes, never, never>;\n    static readonly Fixed: (baseDate: number | string | Date) => Layer.Layer<DateTimes, Cause.IllegalArgumentError, never>;\n}"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/id/src/DateTimes.ts",
            "start": {
              "line": 24,
              "column": 1
            },
            "end": {
              "line": 103,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "static readonly Default: Layer.Layer<DateTimes, never, never>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/id/src/DateTimes.ts",
            "start": {
              "line": 63,
              "column": 3
            },
            "end": {
              "line": 63,
              "column": 69
            }
          }
        ],
        "static": true,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "static readonly Fixed: (baseDate: number | string | Date) => Layer.Layer<DateTimes, Cause.IllegalArgumentError, never>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/id/src/DateTimes.ts",
            "start": {
              "line": 80,
              "column": 3
            },
            "end": {
              "line": 102,
              "column": 7
            }
          }
        ],
        "static": true,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "static readonly date: Effect.Effect<Date, never, DateTimes>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/id/src/DateTimes.ts",
            "start": {
              "line": 51,
              "column": 3
            },
            "end": {
              "line": 51,
              "column": 72
            }
          }
        ],
        "static": true,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "static readonly now: Effect.Effect<number, never, DateTimes>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/id/src/DateTimes.ts",
            "start": {
              "line": 40,
              "column": 3
            },
            "end": {
              "line": 40,
              "column": 69
            }
          }
        ],
        "static": true,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export declare class DateTimes extends DateTimes_base {\n    static readonly now: Effect.Effect<number, never, DateTimes>;\n    static readonly date: Effect.Effect<Date, never, DateTimes>;\n    static readonly Default: Layer.Layer<DateTimes, never, never>;\n    static readonly Fixed: (baseDate: number | string | Date) => Layer.Layer<DateTimes, Cause.IllegalArgumentError, never>;\n}"
    ],
    "typeParameters": [],
    "summary": "Effect service for current epoch milliseconds and Date values.",
    "sections": {
      "Why": "Making time a service keeps time-based ID generators deterministic under tests and explicit under server or browser runtimes.",
      "Ownership and lifetime": "A DateTimes Layer owns its time source for the Layer lifetime; individual reads acquire no resources.",
      "Property: Default": "Provides DateTimes using the runtime wall clock.",
      "Property: Default: Why": "The production default is explicit and replaceable rather than hidden in each generator.",
      "Property: Default: Ownership and lifetime": "The surrounding Layer Scope owns the service; reads allocate only their returned Date values.",
      "Property: Fixed": "Provides DateTimes anchored to a base date and advanced by Effect Clock.",
      "Property: Fixed: Why": "Clock-relative time supports deterministic tests while still allowing controlled advancement; invalid bases fail with `IllegalArgumentError`.",
      "Property: Fixed: Ownership and lifetime": "Layer acquisition captures the base and current Clock reading; the surrounding Layer Scope owns that state.",
      "Property: date": "Reads a Date from the current DateTimes service.",
      "Property: date: Why": "The Date view stays aligned with the same replaceable time source as epoch-millisecond reads.",
      "Property: date: Ownership and lifetime": "This Effect acquires no resources and uses the DateTimes service for one invocation.",
      "Property: now": "Reads epoch milliseconds from the current DateTimes service.",
      "Property: now: Why": "A service-backed read avoids hard-wiring `Date.now` into generators and tests.",
      "Property: now: Ownership and lifetime": "This Effect acquires no resources and uses the DateTimes service for one invocation."
    },
    "examples": [
      {
        "language": "text",
        "code": "```ts\nimport { DateTimes } from \"@typed/id/DateTimes\"\nimport { Effect } from \"effect\"\nconst now = Effect.provide(DateTimes.now, DateTimes.Default)\n```\nSee [Effect Clock](https://effect.website/docs/testing/testclock/)."
      },
      {
        "language": "ts",
        "code": "import { DateTimes } from \"@typed/id/DateTimes\"\nconst fixed = DateTimes.Fixed(\"2026-01-01T00:00:00Z\")"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 24,
          "column": 1
        },
        "end": {
          "line": 103,
          "column": 2
        }
      },
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 63,
          "column": 3
        },
        "end": {
          "line": 63,
          "column": 69
        }
      },
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 80,
          "column": 3
        },
        "end": {
          "line": 102,
          "column": 7
        }
      },
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 51,
          "column": 3
        },
        "end": {
          "line": 51,
          "column": 72
        }
      },
      {
        "file": "packages/id/src/DateTimes.ts",
        "start": {
          "line": 40,
          "column": 3
        },
        "end": {
          "line": 40,
          "column": 69
        }
      }
    ],
    "since": "1.0.0",
    "category": "Time services"
  }
}
