MCPcopy Create free account
hub / github.com/zxlie/FeHelper / fileTimeToUnixMs

Function fileTimeToUnixMs

test/enhancements.test.js:75–77  ·  view source on GitHub ↗
(fileTime)

Source from the content-addressed store, hash-verified

73 const FILETIME_EPOCH_OFFSET = 11644473600000;
74
75 function fileTimeToUnixMs(fileTime) {
76 return Number(BigInt(fileTime) / BigInt(10000)) - FILETIME_EPOCH_OFFSET;
77 }
78
79 function unixMsToFileTime(unixMs) {
80 return (BigInt(unixMs) + BigInt(FILETIME_EPOCH_OFFSET)) * BigInt(10000);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected