import { Injectable } from '@nestjs/common'; /** * Injectable wall clock. Anything that needs to reason about "now" for * retention/cadence math should go through this instead of calling `new * Date()` directly, so tests can simulate time passing (issue #31's * time-travel purge test) by overriding `now()` on the DI-provided * instance instead of faking the global clock. */ @Injectable() export class ClockService { now(): Date { return new Date(); } }