formatTime for use with new timestamp format
This commit is contained in:
parent
c359358101
commit
8e8e6fd5fe
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@ module.exports = {
|
||||||
return days[date.getDay()] + ", " + months[date.getMonth()] + " " + date.getDate() + " " + date.getFullYear() + " " + pad(date.getHours()) + ':' + pad(date.getMinutes());
|
return days[date.getDay()] + ", " + months[date.getMonth()] + " " + date.getDate() + " " + date.getFullYear() + " " + pad(date.getHours()) + ':' + pad(date.getMinutes());
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
},
|
||||||
|
|
||||||
|
formatTime: function(date) {
|
||||||
|
//return pad(date.getHours()) + ':' + pad(date.getMinutes());
|
||||||
|
return ('00' + date.getHours()).slice(-2) + ':' + ('00' + date.getMinutes()).slice(-2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue