mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Create core/date.js
This commit is contained in:
parent
2b84b126c9
commit
2fef0866db
2 changed files with 13 additions and 0 deletions
12
scripts/core/date.js
Normal file
12
scripts/core/date.js
Normal file
|
@ -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.api = require('./api')
|
||||||
exports.id = require('./id')
|
exports.id = require('./id')
|
||||||
exports.m3u = require('./m3u')
|
exports.m3u = require('./m3u')
|
||||||
|
exports.date = require('./date')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue