{ "kind": "open-flow-workflow", "version": 1, "name": "Current UTC Date and Weekday", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_8f55d29c34f00551": { "name": "Read the current UTC time", "kind": "start", "inputDefs": [] }, "n_580c74d83ee77927": { "inputs": {}, "name": "Format one UTC instant", "kind": "task", "task": { "inputs": [], "outputs": [ { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "date_today" }, { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "day_today" } ], "name": "Format one UTC instant", "moduleId": "n_af97a866334e3686", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_f71da3ab9dde3d7d": { "name": "UTC timestamp and weekday", "kind": "outputs", "outputDefs": [ { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "date_today" }, { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "day_today" } ], "outputMappings": { "date_today": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_580c74d83ee77927", "output": "date_today" } ] }, "day_today": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_580c74d83ee77927", "output": "day_today" } ] } } } }, "edges": [ { "source": "n_8f55d29c34f00551", "target": "n_580c74d83ee77927" }, { "source": "n_580c74d83ee77927", "target": "n_f71da3ab9dde3d7d" } ] } }, "modules": { "n_af97a866334e3686": { "name": "Format one UTC instant", "imports": [], "source": "export default function currentUtcDay() {\n const instant = new Date(Date.now());\n const weekdays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n return { date_today: instant.toISOString(), day_today: weekdays[instant.getUTCDay()] };\n}\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }