start = +new Date()
now = +new Date()
time = moment(now - start)
console.log(time.format("D H mm ss"))
output is:
1 8 00 00
refer to the momentjs file as:
http://apps.bdimg.com/libs/mo.
what"s going on? I hope to correctly compare the difference between the two times, who can help solve it? Thank you
-
add:
-
simplify the question
moment (0). Format ("D day H mm minutes ss seconds")
how to output: 0 day 00:00:00