Reduced function code to a single line. Uses Date.toTimeString() and String.slice() to select just the colon time from stirng.
Fixed formatting of both snippet files.