MCPcopy Create free account
hub / github.com/SethGammon/Citadel / compactTimestamp

Function compactTimestamp

scripts/next-action.js:121–125  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

119}
120
121function compactTimestamp(value) {
122 const date = new Date(value || Date.now());
123 if (Number.isNaN(date.getTime())) return 'unknown-time';
124 return date.toISOString().replace(/[-:]/g, '').replace(/\.\d{3}Z$/, 'Z');
125}
126
127function isSetupCommand(command) {
128 return command === '/do setup' || command === '/do setup --express';

Callers 1

writeApprovalCapsuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected