Skip to content

Instantly share code, notes, and snippets.

@juansetorres
Created February 21, 2018 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juansetorres/cbc71734a70b0298b67f064a3f2cbbc9 to your computer and use it in GitHub Desktop.
Save juansetorres/cbc71734a70b0298b67f064a3f2cbbc9 to your computer and use it in GitHub Desktop.
Taller 4

Taller arquisoft

[{"id":"58ffae9d.a7005","type":"debug","name":"","active":true,"complete":false,"x":640,"y":200,"wires":[]},{"id":"17626462.e89d9c","type":"inject","name":"","topic":"","payload":"","repeat":"","once":false,"x":240,"y":200,"wires":[["2921667d.d6de9a"]]},{"id":"2921667d.d6de9a","type":"function","name":"Format timestamp","func":"// Create a Date object from the payload\nvar date = new Date(msg.payload);\n// Change the payload to be a formatted Date string\nmsg.payload = date.toString();\n// Return the message so it can be sent on\nreturn msg;","outputs":1,"x":440,"y":200,"wires":[["58ffae9d.a7005"]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment