|
1 | 1 | import { time } from "console";
|
2 | 2 | import dayjs from "dayjs";
|
3 |
| -import relativeTime from "dayjs/plugin/relativeTime"; |
4 |
| -import timezone from "dayjs/plugin/timezone"; |
5 |
| -import duration from "dayjs/plugin/duration"; |
6 |
| -import utc from "dayjs/plugin/utc"; |
7 |
| -import quarterOfYear from "dayjs/plugin/quarterOfYear"; |
8 |
| -import weekOfYear from "dayjs/plugin/weekOfYear"; |
9 |
| -import isBetween from "dayjs/plugin/isBetween"; |
10 |
| -import isToday from "dayjs/plugin/isToday"; |
11 |
| -import isTomorrow from "dayjs/plugin/isTomorrow"; |
12 |
| -import isYesterday from "dayjs/plugin/isYesterday"; |
13 |
| -import customParseFormat from "dayjs/plugin/customParseFormat"; |
14 |
| -import advancedFormat from "dayjs/plugin/advancedFormat"; |
15 |
| -import updateLocale from "dayjs/plugin/updateLocale"; |
16 |
| -import localeData from "dayjs/plugin/localeData"; |
17 |
| -import localizedFormat from "dayjs/plugin/localizedFormat"; |
18 |
| -import isLeapYear from "dayjs/plugin/isLeapYear"; |
19 |
| -import isSameOrAfter from "dayjs/plugin/isSameOrAfter"; |
20 |
| -import isSameOrBefore from "dayjs/plugin/isSameOrBefore"; |
21 |
| -import isoWeek from "dayjs/plugin/isoWeek"; |
22 |
| -import isoWeeksInYear from "dayjs/plugin/isoWeeksInYear"; |
23 |
| -import weekYear from "dayjs/plugin/weekYear"; |
24 |
| -import isMoment from "dayjs/plugin/isMoment"; |
25 |
| -import calendar from "dayjs/plugin/calendar"; |
26 |
| -import buddhistEra from "dayjs/plugin/buddhistEra"; |
27 |
| -import minmax from "dayjs/plugin/minMax"; |
28 |
| -import relativetime from "dayjs/plugin/relativeTime"; |
| 3 | +var relativeTime = require ("dayjs/plugin/relativeTime"); |
| 4 | +var timezone = require ("dayjs/plugin/timezone"); |
| 5 | +var duration = require ("dayjs/plugin/duration"); |
| 6 | +var utc = require ("dayjs/plugin/utc"); |
| 7 | +var quarterOfYear = require ("dayjs/plugin/quarterOfYear"); |
| 8 | +var weekOfYear = require ("dayjs/plugin/weekOfYear"); |
| 9 | +var isBetween = require ("dayjs/plugin/isBetween"); |
| 10 | +var isToday = require ("dayjs/plugin/isToday"); |
| 11 | +var isTomorrow = require ("dayjs/plugin/isTomorrow"); |
| 12 | +var isYesterday = require ("dayjs/plugin/isYesterday"); |
| 13 | +var customParseFormat = require ("dayjs/plugin/customParseFormat"); |
| 14 | +var advancedFormat = require ("dayjs/plugin/advancedFormat"); |
| 15 | +var updateLocale = require ("dayjs/plugin/updateLocale"); |
| 16 | +var localeData = require ("dayjs/plugin/localeData"); |
| 17 | +var localizedFormat = require ("dayjs/plugin/localizedFormat"); |
| 18 | +var isLeapYear = require ("dayjs/plugin/isLeapYear"); |
| 19 | +var isSameOrAfter = require ("dayjs/plugin/isSameOrAfter"); |
| 20 | +var isSameOrBefore = require ("dayjs/plugin/isSameOrBefore"); |
| 21 | +var isoWeek = require ("dayjs/plugin/isoWeek"); |
| 22 | +var isoWeeksInYear = require ("dayjs/plugin/isoWeeksInYear"); |
| 23 | +var weekYear = require ("dayjs/plugin/weekYear"); |
| 24 | +var isMoment = require ("dayjs/plugin/isMoment"); |
| 25 | +var calendar = require ("dayjs/plugin/calendar"); |
| 26 | +var buddhistEra = require ("dayjs/plugin/buddhistEra"); |
| 27 | +var minmax = require ("dayjs/plugin/minMax"); |
| 28 | +var relativetime = require ("dayjs/plugin/relativeTime"); |
| 29 | +var bigIntSupport = require("dayjs/plugin/bigIntSupport"); |
| 30 | +var localizedFormat = require('dayjs/plugin/localizedFormat'); |
| 31 | +var objectSupport = require("dayjs/plugin/objectSupport"); |
| 32 | +var pluralGetSet = require('dayjs/plugin/pluralGetSet'); |
| 33 | +var preParsePostFormat = require('dayjs/plugin/preParsePostFormat'); |
| 34 | +var toObject = require('dayjs/plugin/toObject'); |
| 35 | +var toUnix = require('dayjs/plugin/toUnix'); |
| 36 | +var toArray = require('dayjs/plugin/toArray'); |
29 | 37 |
|
30 | 38 | dayjs.extend(relativeTime);
|
31 | 39 | dayjs.extend(timezone);
|
@@ -53,6 +61,14 @@ dayjs.extend(calendar);
|
53 | 61 | dayjs.extend(buddhistEra);
|
54 | 62 | dayjs.extend(minmax);
|
55 | 63 | dayjs.extend(relativetime);
|
| 64 | +dayjs.extend(bigIntSupport); |
| 65 | +dayjs.extend(localizedFormat); |
| 66 | +dayjs.extend(objectSupport); |
| 67 | +dayjs.extend(pluralGetSet); |
| 68 | +dayjs.extend(preParsePostFormat); |
| 69 | +dayjs.extend(toObject); |
| 70 | +dayjs.extend(toUnix); |
| 71 | +dayjs.extend(toArray); |
56 | 72 |
|
57 | 73 | export const TIME_FORMAT = "HH:mm:ss";
|
58 | 74 | export const TIME_12_FORMAT = "HH:mm:ss:a";
|
|
0 commit comments