The time now (local) is 22:40 3 Sept 2020
Give or take for the minutes/seconds.
This is an extract of a flow:
[{"id":"4b8ef85a.3c413","type":"inject","z":"242538c4.33ddf8","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"foo","payloadType":"str","x":950,"y":400,"wires":[["6f7a47b7.c516f"]]},{"id":"6f7a47b7.c516f","type":"function","z":"242538c4.33ddf8","name":"","func":"msg.payload = new Date();\nreturn msg;","outputs":1,"noerr":0,"x":1080,"y":360,"wires":[["55fe9b1f.9f8dcc","6aa131c7.5dd078"]]},{"id":"6aa131c7.5dd078","type":"debug","z":"242538c4.33ddf8","name":"Time now?","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1260,"y":360,"wires":[]},{"id":"55fe9b1f.9f8dcc","type":"moment","z":"242538c4.33ddf8","name":"","topic":"","input":"","inputType":"msg","inTz":"Australia/Sydney","adjAmount":0,"adjType":"days","adjDir":"add","format":"DD/MMM/YY","locale":"en_AU","output":"","outputType":"msg","outTz":"Australia/Sydney","x":800,"y":700,"wires":[["24878a03.064a9e","3773775b.e93c08","7f97eb1f.8519a4"]]},{"id":"7f97eb1f.8519a4","type":"debug","z":"242538c4.33ddf8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":990,"y":650,"wires":[]},{"id":"3773775b.e93c08","type":"moment","z":"242538c4.33ddf8","name":"","topic":"","input":"","inputType":"msg","inTz":"Australia/Sydney","adjAmount":0,"adjType":"days","adjDir":"add","format":"ddd","locale":"en_AU","output":"","outputType":"msg","outTz":"Australia/Sydney","x":800,"y":850,"wires":[["309edecd.303782","bc956c32.a9829"]]},{"id":"bc956c32.a9829","type":"debug","z":"242538c4.33ddf8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":950,"y":810,"wires":[]}]
I am making a clock. (Re-inventing the wheel)
So, all things are looking kind of good, but then I noticed the week day.
SUNDAY
All the debug
nodes are showing me the right times and dates.
As per this picture.
It is the moment
node.
The bottom one gets the week day by having ddd
in the field.
To save you having to load the flow and look.
I searched and ddd
gives the week day in 3 letters.
(Or that's what it said when I found it when I searched)
All the same, I can't see 3 days difference between now and Sunday.
Now, even considering we are not using Z
time which is shown in one of the debug
outputs.....
I fail to see how today is Thursday, yet I am being told it is Sunday.
Yes: I've missed another elephant.
But what can I say?