mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-24 08:56:34 +08:00
7 lines
266 B
TypeScript
7 lines
266 B
TypeScript
|
// 获取常用时间
|
||
|
import dayjs, { Dayjs } from 'dayjs';
|
||
|
|
||
|
export const LAST_7_DAYS: [Dayjs, Dayjs] = [dayjs().subtract(7, 'day'), dayjs().subtract(1, 'day')];
|
||
|
|
||
|
export const LAST_30_DAYS: [Dayjs, Dayjs] = [dayjs().subtract(30, 'day'), dayjs().subtract(1, 'day')];
|