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

Function getScreenshotObjectTime

packages/web-backend/src/Videos/index.ts:38–43  ·  view source on GitHub ↗
(value: ScreenshotObject["LastModified"])

Source from the content-addressed store, hash-verified

36 lastModified: number | null;
37};
38const getScreenshotObjectTime = (value: ScreenshotObject["LastModified"]) => {
39 if (value == null) return null;
40 const time =
41 value instanceof Date ? value.getTime() : new Date(value).getTime();
42 return Number.isFinite(time) ? time : null;
43};
44export const findScreenshotObjectKey = (
45 contents: ReadonlyArray<ScreenshotObject>,
46) => {

Callers 1

findScreenshotObjectKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected