MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / normalizeMtime

Function normalizeMtime

src/utils/helpers.js:529–533  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

527 return `${trimmedCountStr}${units[index]}`;
528 },
529 normalizeMtime(value) {
530 if (value == null) return null;
531 const time = value instanceof Date ? value.getTime() : Number(value);
532 return Number.isFinite(time) ? time : null;
533 },
534 getStatMtime(stat) {
535 return this.normalizeMtime(
536 stat?.modifiedDate ?? stat?.lastModified ?? stat?.mtime,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected