|
| 1 | +import{time}from"console"; |
1 | 2 | importdayjsfrom"dayjs";
|
2 | 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"; |
| 29 | + |
3 | 30 | dayjs.extend(relativeTime);
|
| 31 | +dayjs.extend(timezone); |
| 32 | +dayjs.extend(duration); |
| 33 | +dayjs.extend(utc); |
| 34 | +dayjs.extend(quarterOfYear); |
| 35 | +dayjs.extend(weekOfYear); |
| 36 | +dayjs.extend(isBetween); |
| 37 | +dayjs.extend(isToday); |
| 38 | +dayjs.extend(isTomorrow); |
| 39 | +dayjs.extend(isYesterday); |
| 40 | +dayjs.extend(customParseFormat); |
| 41 | +dayjs.extend(advancedFormat); |
| 42 | +dayjs.extend(updateLocale); |
| 43 | +dayjs.extend(localeData); |
| 44 | +dayjs.extend(localizedFormat); |
| 45 | +dayjs.extend(isLeapYear); |
| 46 | +dayjs.extend(isSameOrAfter); |
| 47 | +dayjs.extend(isSameOrBefore); |
| 48 | +dayjs.extend(isoWeek); |
| 49 | +dayjs.extend(isoWeeksInYear); |
| 50 | +dayjs.extend(weekYear); |
| 51 | +dayjs.extend(isMoment); |
| 52 | +dayjs.extend(calendar); |
| 53 | +dayjs.extend(buddhistEra); |
| 54 | +dayjs.extend(minmax); |
| 55 | +dayjs.extend(relativetime); |
4 | 56 |
|
5 | 57 | exportconstTIME_FORMAT="HH:mm:ss";
|
6 | 58 | exportconstTIME_12_FORMAT="HH:mm:ss:a";
|
|