1
1
import { time } from "console" ;
2
2
import dayjs from "dayjs" ;
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' ) ;
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 bigIntSupport from "dayjs/plugin/bigIntSupport" ;
29
+ import objectSupport from "dayjs/plugin/objectSupport" ;
30
+ import pluralGetSet from 'dayjs/plugin/pluralGetSet' ;
31
+ import preParsePostFormat from 'dayjs/plugin/preParsePostFormat' ;
32
+ import toObject from 'dayjs/plugin/toObject' ;
33
+ import toArray from 'dayjs/plugin/toArray' ;
37
34
38
35
dayjs . extend ( relativeTime ) ;
39
36
dayjs . extend ( timezone ) ;
@@ -60,14 +57,13 @@ dayjs.extend(isMoment);
60
57
dayjs . extend ( calendar ) ;
61
58
dayjs . extend ( buddhistEra ) ;
62
59
dayjs . extend ( minmax ) ;
63
- dayjs . extend ( relativetime ) ;
60
+ dayjs . extend ( relativeTime ) ;
64
61
dayjs . extend ( bigIntSupport ) ;
65
62
dayjs . extend ( localizedFormat ) ;
66
63
dayjs . extend ( objectSupport ) ;
67
64
dayjs . extend ( pluralGetSet ) ;
68
65
dayjs . extend ( preParsePostFormat ) ;
69
66
dayjs . extend ( toObject ) ;
70
- dayjs . extend ( toUnix ) ;
71
67
dayjs . extend ( toArray ) ;
72
68
73
69
export const TIME_FORMAT = "HH:mm:ss" ;
0 commit comments