时钟完成
This commit is contained in:
@@ -15,11 +15,16 @@ interface GetDate{
|
||||
end: string;
|
||||
}
|
||||
|
||||
export function getdate(yue?: number): GetDate{
|
||||
let now = dayjs()
|
||||
if(yue != undefined){
|
||||
now = now.month(now.month() + yue);
|
||||
}
|
||||
export function getdate(yue: number,id: string): GetDate{
|
||||
/* eslint-disable */
|
||||
const utc = require('dayjs/plugin/utc') // dependent on utc plugin
|
||||
/* eslint-disable */
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
const days: any = dayjs;
|
||||
let now = days().tz(id)
|
||||
now = now.month(now.month() + yue);
|
||||
yue = now.month() + 1;
|
||||
const day = now.date() // 当前天
|
||||
const zhou = now.day(); // 当前周
|
||||
|
||||
Reference in New Issue
Block a user