UNPKG
hbs-blog
Version:
latest (1.4.0)
1.4.0
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
handlebarjs helper to generate blog pages and navigations
github.com/toh82/hbs-blog
toh82/hbs-blog
hbs-blog
/
helper
/
formatTime.js
14 lines
(11 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module
.exports = formatTime var Moment =
require
(
'moment'
) /** * @param {
string
}
date
* @param {
string
}
format
* @returns {
string
} */
function
formatTime
(date, format)
{ var moment = Moment(
date
)
return
moment.
format
(
format
) }