31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
|
import dayjs from 'dayjs';
|
||
|
import advancedFormat from 'dayjs/plugin/advancedFormat';
|
||
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
||
|
import IsBetween from 'dayjs/plugin/isBetween';
|
||
|
import IsSameOrAfter from 'dayjs/plugin/isSameOrAfter';
|
||
|
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
||
|
import isoWeek from 'dayjs/plugin/isoWeek';
|
||
|
import localeData from 'dayjs/plugin/localeData';
|
||
|
import quarterOfYear from 'dayjs/plugin/quarterOfYear';
|
||
|
import tz from 'dayjs/plugin/timezone';
|
||
|
import utc from 'dayjs/plugin/utc';
|
||
|
import weekOfYear from 'dayjs/plugin/weekOfYear';
|
||
|
import weekYear from 'dayjs/plugin/weekYear';
|
||
|
import weekday from 'dayjs/plugin/weekday';
|
||
|
|
||
|
dayjs.extend(weekday);
|
||
|
dayjs.extend(localeData);
|
||
|
dayjs.extend(tz);
|
||
|
dayjs.extend(utc);
|
||
|
dayjs.extend(quarterOfYear);
|
||
|
dayjs.extend(isoWeek);
|
||
|
dayjs.extend(IsBetween);
|
||
|
dayjs.extend(IsSameOrAfter);
|
||
|
dayjs.extend(isSameOrBefore);
|
||
|
dayjs.extend(weekOfYear);
|
||
|
dayjs.extend(weekYear);
|
||
|
dayjs.extend(customParseFormat);
|
||
|
dayjs.extend(advancedFormat);
|
||
|
|
||
|
export { dayjs };
|