Node-red-contrib-simpletime new function added

A small update to node-red-contrib-simpletime has been made to enable the time format to be displayed in 12hr format, ie 12:20AM as well as the 24hr msg - 00:20.

The changes have added 2 new messages;
msg.myhourpm which outputs the hour in 12hr format, and
msg.mypm which outputs either AM or PM

The result of combining these 2 msg's in a template node - {{myhourpm}}:{{myminute}}{{mypm}} results in "12:20AM".

3 Likes