Spaces:
Paused
Paused
Download packages/graph/src/utils/time.ts from ccheney/engram-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/spaces/ccheney/engram-benchmark/resolve/main/packages/graph/src/utils/time.ts
- Command line
-
hf download hf://spaces/ccheney/engram-benchmark/packages/graph/src/utils/time.ts
-
curl -L -o time.ts https://huggingface.co/spaces/ccheney/engram-benchmark/resolve/main/packages/graph/src/utils/time.ts
335 Bytes
| import type { Bitemporal } from "../models/base"; | |
| export const MAX_DATE = 253402300799000; // 9999-12-31 | |
| export const now = () => Date.now(); | |
| export const createBitemporal = (validFrom: number = now()): Bitemporal => { | |
| const t = now(); | |
| return { | |
| vt_start: validFrom, | |
| vt_end: MAX_DATE, | |
| tt_start: t, | |
| tt_end: MAX_DATE, | |
| }; | |
| }; | |