2016-12-18 10:53:28 -05:00
|
|
|
module.exports = function(time) {
|
|
|
|
time = new Date(time);
|
|
|
|
var h = time.getHours();
|
|
|
|
var m = time.getMinutes();
|
2016-10-09 15:14:02 -04:00
|
|
|
|
2016-12-18 10:53:28 -05:00
|
|
|
if (h < 10) {
|
|
|
|
h = "0" + h;
|
|
|
|
}
|
2016-03-11 15:14:15 -05:00
|
|
|
|
2016-12-18 10:53:28 -05:00
|
|
|
if (m < 10) {
|
|
|
|
m = "0" + m;
|
2014-07-23 20:16:00 -04:00
|
|
|
}
|
2016-12-18 10:53:28 -05:00
|
|
|
|
|
|
|
return h + ":" + m;
|
|
|
|
};
|