Add unix timestamp support

This commit is contained in:
pyoor 2017-11-27 11:53:48 -05:00
parent bc19d0869c
commit 88d3051fc3

View file

@ -19,5 +19,8 @@ make.datetime = {
},
iso: function () { // eslint-disable-line no-unused-vars
return this.object().toISOString()
},
epoch: function () { // eslint-disable-line no-unused-vars
return Math.floor(this.object() / 1000)
}
}