Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite72a6c9

Browse files
author
FalkWolsky
committed
Adding DayJS plugins by Default
1 parentca6905f commite72a6c9

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

‎client/packages/lowcoder/src/util/dateTimeUtils.ts‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,58 @@
1+
import{time}from"console";
12
importdayjsfrom"dayjs";
23
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+
330
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);
456

557
exportconstTIME_FORMAT="HH:mm:ss";
658
exportconstTIME_12_FORMAT="HH:mm:ss:a";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp