MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / localDate

Function localDate

packages/agent-core/test/tools/cron/cron-expr.test.ts:15–24  ·  view source on GitHub ↗
(
  y: number,
  monthIndex: number,
  d: number,
  h = 0,
  m = 0,
  s = 0,
)

Source from the content-addressed store, hash-verified

13} from '../../../src/tools/cron/cron-expr';
14
15function localDate(
16 y: number,
17 monthIndex: number,
18 d: number,
19 h = 0,
20 m = 0,
21 s = 0,
22): number {
23 return new Date(y, monthIndex, d, h, m, s, 0).getTime();
24}
25
26function nextLocalParts(ts: number) {
27 const d = new Date(ts);

Callers 1

cron-expr.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected