Add unix timestamp support
This commit is contained in:
parent
bc19d0869c
commit
88d3051fc3
1 changed files with 3 additions and 0 deletions
|
@ -19,5 +19,8 @@ make.datetime = {
|
||||||
},
|
},
|
||||||
iso: function () { // eslint-disable-line no-unused-vars
|
iso: function () { // eslint-disable-line no-unused-vars
|
||||||
return this.object().toISOString()
|
return this.object().toISOString()
|
||||||
|
},
|
||||||
|
epoch: function () { // eslint-disable-line no-unused-vars
|
||||||
|
return Math.floor(this.object() / 1000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue