Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Acode-Foundation/Acode
/ normalizeModifiedDate
Function
normalizeModifiedDate
src/lib/fileList.js:640–645 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
638
}
639
640
function
normalizeModifiedDate(value) {
641
if
(!value)
return
0;
642
if
(typeof value ===
"number"
)
return
value;
643
const
time =
new
Date(value).getTime();
644
return
Number.isNaN(time) ? 0 : time;
645
}
Callers
1
constructor
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected