|
1 | 1 | import{time}from"console";
|
2 | 2 | importdayjsfrom"dayjs";
|
3 |
| -importrelativeTimefrom"dayjs/plugin/relativeTime"; |
4 |
| -importtimezonefrom"dayjs/plugin/timezone"; |
5 |
| -importdurationfrom"dayjs/plugin/duration"; |
6 |
| -importutcfrom"dayjs/plugin/utc"; |
7 |
| -importquarterOfYearfrom"dayjs/plugin/quarterOfYear"; |
8 |
| -importweekOfYearfrom"dayjs/plugin/weekOfYear"; |
9 |
| -importisBetweenfrom"dayjs/plugin/isBetween"; |
10 |
| -importisTodayfrom"dayjs/plugin/isToday"; |
11 |
| -importisTomorrowfrom"dayjs/plugin/isTomorrow"; |
12 |
| -importisYesterdayfrom"dayjs/plugin/isYesterday"; |
13 |
| -importcustomParseFormatfrom"dayjs/plugin/customParseFormat"; |
14 |
| -importadvancedFormatfrom"dayjs/plugin/advancedFormat"; |
15 |
| -importupdateLocalefrom"dayjs/plugin/updateLocale"; |
16 |
| -importlocaleDatafrom"dayjs/plugin/localeData"; |
17 |
| -importlocalizedFormatfrom"dayjs/plugin/localizedFormat"; |
18 |
| -importisLeapYearfrom"dayjs/plugin/isLeapYear"; |
19 |
| -importisSameOrAfterfrom"dayjs/plugin/isSameOrAfter"; |
20 |
| -importisSameOrBeforefrom"dayjs/plugin/isSameOrBefore"; |
21 |
| -importisoWeekfrom"dayjs/plugin/isoWeek"; |
22 |
| -importisoWeeksInYearfrom"dayjs/plugin/isoWeeksInYear"; |
23 |
| -importweekYearfrom"dayjs/plugin/weekYear"; |
24 |
| -importisMomentfrom"dayjs/plugin/isMoment"; |
25 |
| -importcalendarfrom"dayjs/plugin/calendar"; |
26 |
| -importbuddhistErafrom"dayjs/plugin/buddhistEra"; |
27 |
| -importminmaxfrom"dayjs/plugin/minMax"; |
28 |
| -importrelativetimefrom"dayjs/plugin/relativeTime"; |
| 3 | +varrelativeTime=require("dayjs/plugin/relativeTime"); |
| 4 | +vartimezone=require("dayjs/plugin/timezone"); |
| 5 | +varduration=require("dayjs/plugin/duration"); |
| 6 | +varutc=require("dayjs/plugin/utc"); |
| 7 | +varquarterOfYear=require("dayjs/plugin/quarterOfYear"); |
| 8 | +varweekOfYear=require("dayjs/plugin/weekOfYear"); |
| 9 | +varisBetween=require("dayjs/plugin/isBetween"); |
| 10 | +varisToday=require("dayjs/plugin/isToday"); |
| 11 | +varisTomorrow=require("dayjs/plugin/isTomorrow"); |
| 12 | +varisYesterday=require("dayjs/plugin/isYesterday"); |
| 13 | +varcustomParseFormat=require("dayjs/plugin/customParseFormat"); |
| 14 | +varadvancedFormat=require("dayjs/plugin/advancedFormat"); |
| 15 | +varupdateLocale=require("dayjs/plugin/updateLocale"); |
| 16 | +varlocaleData=require("dayjs/plugin/localeData"); |
| 17 | +varlocalizedFormat=require("dayjs/plugin/localizedFormat"); |
| 18 | +varisLeapYear=require("dayjs/plugin/isLeapYear"); |
| 19 | +varisSameOrAfter=require("dayjs/plugin/isSameOrAfter"); |
| 20 | +varisSameOrBefore=require("dayjs/plugin/isSameOrBefore"); |
| 21 | +varisoWeek=require("dayjs/plugin/isoWeek"); |
| 22 | +varisoWeeksInYear=require("dayjs/plugin/isoWeeksInYear"); |
| 23 | +varweekYear=require("dayjs/plugin/weekYear"); |
| 24 | +varisMoment=require("dayjs/plugin/isMoment"); |
| 25 | +varcalendar=require("dayjs/plugin/calendar"); |
| 26 | +varbuddhistEra=require("dayjs/plugin/buddhistEra"); |
| 27 | +varminmax=require("dayjs/plugin/minMax"); |
| 28 | +varrelativetime=require("dayjs/plugin/relativeTime"); |
| 29 | +varbigIntSupport=require("dayjs/plugin/bigIntSupport"); |
| 30 | +varlocalizedFormat=require('dayjs/plugin/localizedFormat'); |
| 31 | +varobjectSupport=require("dayjs/plugin/objectSupport"); |
| 32 | +varpluralGetSet=require('dayjs/plugin/pluralGetSet'); |
| 33 | +varpreParsePostFormat=require('dayjs/plugin/preParsePostFormat'); |
| 34 | +vartoObject=require('dayjs/plugin/toObject'); |
| 35 | +vartoUnix=require('dayjs/plugin/toUnix'); |
| 36 | +vartoArray=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 | exportconstTIME_FORMAT="HH:mm:ss";
|
58 | 74 | exportconstTIME_12_FORMAT="HH:mm:ss:a";
|
|