git ssb

0+

mixmix / patchbay-scry



Tree: 462c60502f8c45618c08ea0232132580d5801964

Files: 462c60502f8c45618c08ea0232132580d5801964 / lib / print-time.js

266 bytesRaw
1module.exports = function printTime (date) {
2 var hours = date.getHours().toString()
3 while (hours.length < 2) hours = `0${hours}`
4
5 var minutes = date.getMinutes().toString()
6 while (minutes.length < 2) minutes = `0${minutes}`
7
8 return `${hours}:${minutes}`
9}
10

Built with git-ssb-web