Skip to content

Commit 2da0c82

Browse files
committed
Add julian epoch reference
1 parent 7fd92da commit 2da0c82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FacadeVFS.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import * as VFS from './VFS.js';
33

44
const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor;
55

6-
// Unix epoch in milliseconds as a BigInt.
6+
// Milliseconds since Julian epoch as a BigInt.
7+
// https://github.com/sqlite/sqlite/blob/e57527c14f7b7cfa6e32eeab5c549d50c4fa3674/src/os_unix.c#L6872-L6882
78
const UNIX_EPOCH = 24405875n * 8640000n;
89

910
// Convenience base class for a JavaScript VFS.

0 commit comments

Comments
 (0)