Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Acode-Foundation/Acode
/ count
Function
count
src/lib/notificationManager.js:327–327 ·
view source on GitHub ↗
(unit)
Source
from the content-addressed store, hash-verified
325
const
now =
new
Date();
326
const
diff = Math.floor((now - date) / 1000);
327
const
count = (unit) => Math.floor(diff / unit);
328
329
if
(diff < 60)
return
strings[
"just now"
];
330
Callers
1
notificationManager.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected