Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
untitled notebook
node v10.24.1
endpoint
share
tweet
const dayjs = require('dayjs') var duration = require('dayjs/plugin/duration') dayjs.extend(duration) var x = dayjs() var y = dayjs() var duration = dayjs.duration(x.diff(y)) console.log(duration)
Loading…
no comments
sign in
to comment