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

Function unixMsToFileTime

test/enhancements.test.js:79–81  ·  view source on GitHub ↗
(unixMs)

Source from the content-addressed store, hash-verified

77 }
78
79 function unixMsToFileTime(unixMs) {
80 return (BigInt(unixMs) + BigInt(FILETIME_EPOCH_OFFSET)) * BigInt(10000);
81 }
82
83 it('已知 FILETIME → Unix 时间 (2024-01-01 00:00:00 UTC)', () => {
84 // 2024-01-01T00:00:00Z = Unix 1704067200000ms

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected