# Node-red-contrib-simpletime new function added

**URL:** <https://discourse.nodered.org/t/node-red-contrib-simpletime-new-function-added/12296>\
**Category:** Share Your Nodes\
**Created:** [16 June 2019 19:43 UTC](https://discourse.nodered.org/t/node-red-contrib-simpletime-new-function-added/12296 "2019-06-16T19:43:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [16 June 2019 19:43 UTC](https://discourse.nodered.org/t/node-red-contrib-simpletime-new-function-added/12296/1 "2019-06-16T19:43:43Z")

</div>

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".
