Create core/date.js
This commit is contained in:
parent
2b84b126c9
commit
2fef0866db
|
@ -0,0 +1,12 @@
|
|||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
|
||||
dayjs.extend(utc)
|
||||
|
||||
const date = {}
|
||||
|
||||
date.utc = d => {
|
||||
return dayjs.utc(d)
|
||||
}
|
||||
|
||||
module.exports = date
|
|
@ -11,3 +11,4 @@ exports.markdown = require('./markdown')
|
|||
exports.api = require('./api')
|
||||
exports.id = require('./id')
|
||||
exports.m3u = require('./m3u')
|
||||
exports.date = require('./date')
|
||||
|
|
Loading…
Reference in New Issue