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

Function toClickhouseDate

packages/db/src/buffers/session-buffer.ts:50–54  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

48 | { kind: 'boundary'; current: IClickhouseSession; closed: IClickhouseSession };
49
50function toClickhouseDate(date: Date): string {
51 return DateTime.fromJSDate(date)
52 .setZone('UTC')
53 .toFormat('yyyy-MM-dd HH:mm:ss.SSS');
54}
55
56function fromClickhouseDate(s: string): Date {
57 return DateTime.fromFormat(s, 'yyyy-MM-dd HH:mm:ss.SSS', {

Callers 2

extendSessionMethod · 0.85
newSessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected