Sorry folks.
I can't seem to get it.
I have this:
[
{
"id": "b5fa13f755ec33fe",
"type": "change",
"z": "235f16ee6e459f2c",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$moment().tz(\"Australia/Sydney\").format(\"H:m:s\")",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$split($$.payload, \":\").$formatInteger($number($), \"w\")",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4180,
"y": 3550,
"wires": [
[]
]
}
]
Which is good. It works.
BUT - yeah, there is one.
I would also like to get the time (hours minutes seconds) as integer numbers as/in another part of the message.
So, say msg.time
.
(Can be an array or structure.)
Just I need to so stuff at/in the next node and it would be easier if I had the numeric values rather than the text values - which are still needed.