MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / normalizeTimestamp

Function normalizeTimestamp

hotmail-utils.js:20–28  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

18 }
19
20 function normalizeTimestamp(value) {
21 if (!value) return 0;
22 if (typeof value === 'number' && Number.isFinite(value)) {
23 return value > 0 ? value : 0;
24 }
25
26 const timestamp = Date.parse(value);
27 return Number.isFinite(timestamp) ? timestamp : 0;
28 }
29
30 function normalizeHotmailServiceMode(rawValue = '') {
31 return String(rawValue || '').trim().toLowerCase() === HOTMAIL_SERVICE_MODE_REMOTE

Calls

no outgoing calls

Tested by

no test coverage detected