@prismshadow/penguin-library-observability · library/observability/src/observability.ts:422

UsageClock

interface

The clock the usage statistics read time through — "today", "last 7 days" and the default series window all start from it. A structural port: the server's Clock capability satisfies it (the Provider in packages/server binds the service's field by hand; tests pass a stub). Declared here so the package never imports the server.

API

@Interface()
export abstract class UsageClock {
  abstract now(): Date;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Useconsumed by (1)

Members (1)

now

now(): Date
@returnsDate