MCPcopy
hub / github.com/CapSoftware/Cap / formatDateTime

Function formatDateTime

packages/web-backend/src/Videos/index.ts:19–20  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

17const escapeSqlLiteral = (value: string) => value.replace(/'/g, "''");
18const formatDate = (date: Date) => date.toISOString().slice(0, 10);
19const formatDateTime = (date: Date) =>
20 date.toISOString().slice(0, 19).replace("T", " ");
21const buildPathname = (videoId: Video.VideoId) => `/s/${videoId}`;
22const SCREENSHOT_OBJECT_KEY_SUFFIXES = [
23 "screenshot/screen-capture.png",

Callers 1

VideosClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected