[{"id":"481858da654123df","type":"tab","label":"Flow 4","disabled":false,"info":"","env":[]},{"id":"a284d8c1.e2dd","type":"inject","z":"481858da654123df","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"yyy","v":"$moment(payload).tz(\"Asia/Seoul\").format('YYYY') \t","vt":"jsonata"},{"p":"YMD_L","v":"$moment($now()).tz(\"Europe/London\").format('YYYY-MM-DD HH:mm:ss')","vt":"jsonata"},{"p":"YMD_S","v":"$moment($now()).tz(\"Asia/Seoul\").format('YYYY-MM-DD HH:mm:ss')","vt":"jsonata"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"Asia/Seoul","payload":"$now()","payloadType":"jsonata","x":108.99999237060547,"y":103.99999618530273,"wires":[["3be8855b.56d692","96b4d1af47181427"]]},{"id":"3be8855b.56d692","type":"change","z":"481858da654123df","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$moment(payload).tz(\"Europe/London\").format('YYYY-MM-DD HH:mm:ss') \t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":185.99999618530273,"y":36.9999942779541,"wires":[["8a900799.717ad8"]]},{"id":"8a900799.717ad8","type":"debug","z":"481858da654123df","name":"arrUpdateDate","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":305.0000190734863,"y":168.99997568130493,"wires":[]},{"id":"96b4d1af47181427","type":"function","z":"481858da654123df","name":"","func":"node.status({text: JSON.stringify(msg)})\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":95.01420593261719,"y":197.00562381744385,"wires":[[]]}]
$moment($now()).tz("Europe/London").format('YYYY-MM-DD HH:mm:ss')
$moment($now()).tz("Asia/Seoul").format('YYYY-MM-DD HH:mm:ss')
TimeZone 참고 페이지 KR은 Asia/Seoul
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
List of tz database time zones - Wikipedia
From Wikipedia, the free encyclopedia Jump to navigation Jump to search World map showing time zones from the tz database version 2017a This is a list of time zones from release 2021e of the tz database.[1] Canonical - The primary, preferred zone name. Lin
en.wikipedia.org
'NodeRed' 카테고리의 다른 글
nodered flow내 변수 flowContext 사용법 count 예문 (0) | 2022.05.06 |
---|---|
nodered템플릿 예제 (0) | 2022.05.04 |
nodered rpi-gpio라즈베리파이 제어 예제 (0) | 2022.05.03 |
npm 설치 사용자 설치한 패키지 리스트 검색 하는 법 (0) | 2022.02.25 |
node-red의 Flow안에서 node간에 함수를 공유 하여 사용법 (0) | 2022.02.23 |