MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / chDateTime

Function chDateTime

packages/db/scripts/find-duplicate-events.ts:100–102  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

98
99// Format a JS Date as a ClickHouse DateTime64(3) literal (UTC).
100function chDateTime(date: Date): string {
101 return date.toISOString().replace('T', ' ').replace('Z', '').slice(0, 23);
102}
103
104// Content hash identifying a logical event (everything but `id`). Properties
105// are normalized to a canonical, order-independent "key=value" list so map

Callers 2

reportFunction · 0.85
deleteDuplicatesFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected