mat-date 1.9.24 → 1.9.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DateUtil.d.ts +131 -0
- package/dist/DateUtil.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
interface IStrOptions {
|
|
2
|
+
localeMatcher?: "best fit" | "lookup" | undefined;
|
|
3
|
+
weekday?: "long" | "short" | "narrow" | undefined;
|
|
4
|
+
era?: "long" | "short" | "narrow" | undefined;
|
|
5
|
+
year?: "numeric" | "2-digit" | undefined;
|
|
6
|
+
month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
|
|
7
|
+
day?: "numeric" | "2-digit" | undefined;
|
|
8
|
+
hour?: "numeric" | "2-digit" | undefined;
|
|
9
|
+
minute?: "numeric" | "2-digit" | undefined;
|
|
10
|
+
second?: "numeric" | "2-digit" | undefined;
|
|
11
|
+
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
|
|
12
|
+
formatMatcher?: "best fit" | "basic" | undefined;
|
|
13
|
+
hour12?: boolean | undefined;
|
|
14
|
+
timeZone?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare class MDateUtil {
|
|
17
|
+
private val;
|
|
18
|
+
private _code;
|
|
19
|
+
private _zone;
|
|
20
|
+
private dyfrmt;
|
|
21
|
+
get localCode(): string;
|
|
22
|
+
get zone(): string;
|
|
23
|
+
private with;
|
|
24
|
+
private init;
|
|
25
|
+
toString(): string;
|
|
26
|
+
static new(): MDateUtil;
|
|
27
|
+
static setCode(code: string): typeof MDateUtil;
|
|
28
|
+
static setZone(zone: string): typeof MDateUtil;
|
|
29
|
+
static seperator(): string;
|
|
30
|
+
cpy(): MDateUtil;
|
|
31
|
+
setCode(code: string): this;
|
|
32
|
+
setZone(zone: string): this;
|
|
33
|
+
seperator(): string;
|
|
34
|
+
timezone(): string;
|
|
35
|
+
zones(code?: string): string[];
|
|
36
|
+
region(code?: string): string;
|
|
37
|
+
year(): number;
|
|
38
|
+
month(): number;
|
|
39
|
+
monthUtc(): number;
|
|
40
|
+
day(): number;
|
|
41
|
+
hours(): number;
|
|
42
|
+
min(): number;
|
|
43
|
+
sec(): number;
|
|
44
|
+
msec(): number;
|
|
45
|
+
dayOfWeek(): number;
|
|
46
|
+
dayOfWeekUtc(): number;
|
|
47
|
+
setYear(value: number): this;
|
|
48
|
+
setMonth(value: number): this;
|
|
49
|
+
setMonthUtc(value: number): this;
|
|
50
|
+
setDay(value: number): this;
|
|
51
|
+
setHour(value: number): this;
|
|
52
|
+
startOfHours(): this;
|
|
53
|
+
endOfHours(): this;
|
|
54
|
+
setMin(value: number): this;
|
|
55
|
+
startOfMin(): this;
|
|
56
|
+
endOfMin(): this;
|
|
57
|
+
setSeconds(value: number): this;
|
|
58
|
+
startOfSeconds(): this;
|
|
59
|
+
endOfSeconds(): this;
|
|
60
|
+
private setMilliseconds;
|
|
61
|
+
startOfMilliseconds(): this;
|
|
62
|
+
endOfMilliseconds(): this;
|
|
63
|
+
setIsoDate(value: string): this;
|
|
64
|
+
setTime(value: number): this;
|
|
65
|
+
setDate(value: Date): this;
|
|
66
|
+
setDateInputValue(value: string): this;
|
|
67
|
+
setVal(value: MDateUtil | Date | number | string): MDateUtil;
|
|
68
|
+
toIsoDate(): string;
|
|
69
|
+
toIsoDateZone(): string;
|
|
70
|
+
toTime(): number;
|
|
71
|
+
toDate(): Date;
|
|
72
|
+
toDateMounthInput(): string;
|
|
73
|
+
toDateInput(): string;
|
|
74
|
+
toTimeInput(byS?: boolean): any;
|
|
75
|
+
toDateTimeInput(byS?: boolean): string;
|
|
76
|
+
toAs(): string;
|
|
77
|
+
strDate(): string;
|
|
78
|
+
strTime(): string;
|
|
79
|
+
strHHmm(): string;
|
|
80
|
+
str(): string;
|
|
81
|
+
strLocal(options: IStrOptions): string;
|
|
82
|
+
strYears(): string;
|
|
83
|
+
strMounth(): string;
|
|
84
|
+
strDay(): string;
|
|
85
|
+
strHour(): string;
|
|
86
|
+
strMin(): string;
|
|
87
|
+
strSec(): string;
|
|
88
|
+
strMsec(): string;
|
|
89
|
+
strDayStr(): {
|
|
90
|
+
ln: () => string;
|
|
91
|
+
sh: () => string;
|
|
92
|
+
nr: () => string;
|
|
93
|
+
};
|
|
94
|
+
addDay(value: number): this;
|
|
95
|
+
addHours(value: number): this;
|
|
96
|
+
addMins(value: number): this;
|
|
97
|
+
addSecs(value: number): this;
|
|
98
|
+
addMilliseconds(value: number): this;
|
|
99
|
+
startOfDay(): this;
|
|
100
|
+
cpyByStartOfDay(): MDateUtil;
|
|
101
|
+
endOfDay(): this;
|
|
102
|
+
cpyByEndOfDay(): MDateUtil;
|
|
103
|
+
startOfWeek(): this;
|
|
104
|
+
cpyStartOfWeek(): MDateUtil;
|
|
105
|
+
endOfWeek(): this;
|
|
106
|
+
cpyEndOfWeek(): MDateUtil;
|
|
107
|
+
startOfMonth(): this;
|
|
108
|
+
cpyByStartOfMonth(): MDateUtil;
|
|
109
|
+
endOfMonth(): this;
|
|
110
|
+
cpyByEndOfMonth(): MDateUtil;
|
|
111
|
+
eq(value: MDateUtil | Date | number | string): boolean;
|
|
112
|
+
gt(value: MDateUtil | Date | number | string): boolean;
|
|
113
|
+
gte(value: MDateUtil | Date | number | string): boolean;
|
|
114
|
+
lt(value: MDateUtil | Date | number | string): boolean;
|
|
115
|
+
lte(value: MDateUtil | Date | number | string): boolean;
|
|
116
|
+
btw(start: MDateUtil | Date | number | string, end: MDateUtil | Date | number | string): boolean;
|
|
117
|
+
btweq(start: MDateUtil | Date | number | string, end: MDateUtil | Date | number | string): boolean;
|
|
118
|
+
btwEqStart(start: MDateUtil | Date | number | string, end: MDateUtil | Date | number | string): boolean;
|
|
119
|
+
btwEqEnd(start: MDateUtil | Date | number | string, end: MDateUtil | Date | number | string): boolean;
|
|
120
|
+
static diffDays(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
|
|
121
|
+
static diffHours(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
|
|
122
|
+
static diffMins(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
|
|
123
|
+
static diffSecs(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
|
|
124
|
+
static divideTime(value: string): {
|
|
125
|
+
h: number;
|
|
126
|
+
m: number;
|
|
127
|
+
s: number;
|
|
128
|
+
ms: number;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export {};
|
package/dist/DateUtil.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const a0_0x1c8525={};a0_0x1c8525['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1c8525),exports['MDateUtil']=void 0x0;const a0_0xc037d0=require('@js-temporal/polyfill'),a0_0x131cf9=(_0x4fd97d,_0x322348=0x2)=>_0x4fd97d['toString']()['padStart'](_0x322348,'0');function a0_0x44e2ea(_0x5391d7,_0x27e24d){try{return _0x5391d7();}catch(_0x264846){if(_0x27e24d)return _0x27e24d;throw new Error('UNKNOWN');}}function a0_0x42b0cb(_0x5ea7d6,_0x4cf1fa){try{if(_0x5ea7d6 instanceof Date)return a0_0xc037d0['Temporal']['Instant']['fromEpochMilliseconds'](_0x5ea7d6['getTime']())['toZonedDateTimeISO'](_0x4cf1fa)['epochMilliseconds'];if(typeof _0x5ea7d6==='number')return _0x5ea7d6;if(typeof _0x5ea7d6==='string')return a0_0xc037d0['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x5ea7d6)['getTime']())['toZonedDateTimeISO'](_0x4cf1fa)['epochMilliseconds'];if(_0x5ea7d6 instanceof a0_0x2fbaae)return _0x5ea7d6['toTime']();if(_0x5ea7d6['idkey']==='MDateUtil')return _0x5ea7d6['toTime']();return 0x0;}catch(_0x4729e2){throw new Error('ERROR');}}function a0_0x411920(_0x4d8de4){function _0x23972e(_0x4ca0f7){const _0x9ff6c6={};return _0x9ff6c6['weekday']=_0x4ca0f7,a0_0x44e2ea(()=>new Intl['DateTimeFormat'](_0x4d8de4['localCode'],_0x9ff6c6)['format'](a0_0x42b0cb(_0x4d8de4,_0x4d8de4['zone'])),'');}function _0x45b19a(){return _0x23972e('long');}function _0x4b74e1(){return _0x23972e('short');}function _0x540596(){return _0x23972e('narrow');}const _0x4be6a4={};return _0x4be6a4['ln']=_0x45b19a,_0x4be6a4['sh']=_0x4b74e1,_0x4be6a4['nr']=_0x540596,_0x4be6a4;}function a0_0x42d19e(_0x4bf958){let _0x4312c4=undefined,_0x20bb33=undefined,_0x3cff07=undefined,_0xde1aa7=undefined;try{const _0x3fb057=(_0x4bf958||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x4312c4=_0x3fb057['length']>=0x1?Number(_0x3fb057[0x0]):undefined,_0x20bb33=_0x3fb057['length']>=0x2?Number(_0x3fb057[0x1]):undefined,_0x3cff07=_0x3fb057['length']>=0x3?Number(_0x3fb057[0x2]):undefined;}catch(_0x16dfe9){}try{let _0x10838b=_0x4bf958||'',_0x7d13e=/\.\d{3}/g,_0x1f6386=_0x10838b['match'](_0x7d13e)[0x0]['split']('.')['filter'](_0x56e235=>Boolean(_0x56e235));_0xde1aa7=_0x1f6386['length']>=0x1?Number(_0x1f6386[0x0]):undefined;}catch(_0x1fbc06){}const _0x417e9f={};return _0x417e9f['h']=_0x4312c4,_0x417e9f['m']=_0x20bb33,_0x417e9f['s']=_0x3cff07,_0x417e9f['ms']=_0xde1aa7,_0x417e9f;}let a0_0x48a08a=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x275deb=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];function a0_0xac4e5b(_0xbb6d5f){return Number(Number(_0xbb6d5f)['toFixed'](0x0))||0x0;}class a0_0x2fbaae{['val'];['_code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x411920(this);get['localCode'](){return this['_code'];}get['zone'](){return this['_zone'];}['with'](_0x4410af){this['val']=this['val']['with']({'year':_0x4410af['getFullYear'](),'month':_0x4410af['getMonth']()+0x1,'day':_0x4410af['getDate'](),'hour':_0x4410af['getHours'](),'minute':_0x4410af['getMinutes'](),'second':_0x4410af['getSeconds'](),'millisecond':_0x4410af['getMilliseconds']()});}['init'](){const _0x3d4209=new Date();return this['val']=a0_0xc037d0['Temporal']['Instant']['from'](_0x3d4209['toISOString']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x411920(this),this;}['toString'](){return'---';}static['new'](){return new a0_0x2fbaae()['setCode'](a0_0x48a08a)['setZone'](a0_0x275deb)['init']();}static['setCode'](_0x41e313){return a0_0x48a08a=_0x41e313,this;}static['setZone'](_0x225faa){return a0_0x275deb=_0x225faa,this;}static['seperator'](){return a0_0x44e2ea(()=>new Date()['toLocaleDateString'](a0_0x48a08a)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x44e2ea(()=>a0_0x2fbaae['new']()['setTime'](this['toTime']()));}['setCode'](_0x1db240){return this['_code']=_0x1db240,this;}['setZone'](_0x19f488){return this['_zone']=_0x19f488,this;}['seperator'](){return a0_0x44e2ea(()=>new Date()['toLocaleDateString'](this['_code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x44e2ea(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x5bfe46=this['_code']){return a0_0x44e2ea(()=>{return new Intl['Locale'](_0x5bfe46)?.['timeZones']||[];},null);}['region'](_0x228329=this['_code']){return a0_0x44e2ea(()=>{return new Intl['Locale'](_0x228329)['region'];},null);}['year'](){return this['val']['year'];}['month'](){return this['val']['month'];}['monthUtc'](){return this['val']['month']-0x1;}['day'](){return this['val']['day'];}['hours'](){return this['val']['hour'];}['min'](){return this['val']['minute'];}['sec'](){return this['val']['second'];}['msec'](){return this['val']['millisecond'];}['dayOfWeek'](){const _0x39f807=this['val']['dayOfWeek'];return _0x39f807?_0x39f807:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x23999e){return this['val']=this['val']['with']({'year':a0_0xac4e5b(_0x23999e)}),this;}['setMonth'](_0x32515e){return this['val']=this['val']['with']({'month':a0_0xac4e5b(_0x32515e)}),this;}['setMonthUtc'](_0x122bd2){return this['val']=this['val']['with']({'month':a0_0xac4e5b(_0x122bd2)+0x1}),this;}['setDay'](_0x74b3a6){return this['val']=this['val']['with']({'day':a0_0xac4e5b(_0x74b3a6)}),this;}['setHour'](_0x445666){return this['val']=this['val']['with']({'hour':a0_0xac4e5b(_0x445666)}),this;}['startOfHours'](){return this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x3ba823){return this['val']=this['val']['with']({'minute':a0_0xac4e5b(_0x3ba823)}),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x498d5c){return this['val']=this['val']['with']({'second':a0_0xac4e5b(_0x498d5c)}),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x5ddaa8){return this['val']=this['val']['with']({'millisecond':a0_0xac4e5b(_0x5ddaa8)}),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x5cd65d){const _0x47c00f=_0x5cd65d?new Date(_0x5cd65d?.['replace']('T','\x20')):new Date();return this['val']=a0_0xc037d0['Temporal']['Instant']['from'](_0x47c00f['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x4c10a5){return this['val']=a0_0xc037d0['Temporal']['Instant']['fromEpochMilliseconds'](_0x4c10a5||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x591991){return this['setIsoDate'](_0x591991?.['toISOString']()),this;}['setDateInputValue'](_0x1f7536){const _0x45f0d0=_0x1f7536?new Date(_0x1f7536?.['replace']('T','\x20')):new Date();return _0x45f0d0['getTime']()&&(this['val']=a0_0xc037d0['Temporal']['Instant']['from'](_0x45f0d0?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x45f0d0)),this;}['setVal'](_0x1ae408){return a0_0x44e2ea(()=>{return a0_0x2fbaae['new']()['setTime'](a0_0x42b0cb(_0x1ae408,this['zone']));});}['toIsoDate'](){const _0x545684={};return _0x545684['fractionalSecondDigits']=0x3,this['val']['toInstant']()['toString'](_0x545684);}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return new Date(this['val']['toInstant']()['epochMilliseconds']);}['toDateMounthInput'](){return this['year']()+'-'+a0_0x131cf9(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x131cf9(this['month']())+'-'+a0_0x131cf9(this['day']());}['toTimeInput'](_0xdae2f8=!![]){const _0x36813b=[];return _0x36813b['push'](a0_0x131cf9(this['hours']())),_0x36813b['push'](a0_0x131cf9(this['min']())),_0xdae2f8&&_0x36813b['push'](a0_0x131cf9(this['sec']())),_0x36813b['join'](':');}['toDateTimeInput'](_0x49264b=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x49264b);}['toAs'](){return this['val']['toInstant']()['toString']();}['strDate'](){const _0x5d965f={};return _0x5d965f['month']='2-digit',_0x5d965f['day']='2-digit',_0x5d965f['year']='numeric',this['val']['toLocaleString'](this['_code'],_0x5d965f);}['strTime'](){return a0_0x131cf9(this['hours']())+':'+a0_0x131cf9(this['min']())+':'+a0_0x131cf9(this['sec']());}['strHHmm'](){return a0_0x131cf9(this['hours']())+':'+a0_0x131cf9(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x12c3a3){return this['val']['toLocaleString'](this['_code'],_0x12c3a3);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x131cf9(this['month'](),0x2);}['strDay'](){return a0_0x131cf9(this['day'](),0x2);}['strHour'](){return a0_0x131cf9(this['hours'](),0x2);}['strMin'](){return a0_0x131cf9(this['min'](),0x2);}['strSec'](){return a0_0x131cf9(this['sec'](),0x2);}['strMsec'](){return a0_0x131cf9(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x2dcb59){return this['addHours'](Number(_0x2dcb59)*0x18),this;}['addHours'](_0x53f737){return this['addMins'](Number(_0x53f737)*0x3c),this;}['addMins'](_0x48a471){return this['addSecs'](Number(_0x48a471)*0x3c),this;}['addSecs'](_0x51805c){return this['addMilliseconds'](Number(_0x51805c)*0x3e8),this;}['addMilliseconds'](_0x21ea34){return this['val']=this['val']['add']({'milliseconds':a0_0xac4e5b(_0x21ea34)}),this;}['startOfDay'](){return this['setHour'](0x0),this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['setHour'](0x17),this['endOfHours'](),this;}['cpyByEndOfDay'](){return this['cpy']()['endOfDay']();}['startOfWeek'](){return this['addDay'](-this['dayOfWeek']()+0x1);}['cpyStartOfWeek'](){return this['cpy']()['addDay'](-this['dayOfWeek']()+0x1);}['endOfWeek'](){return this['startOfWeek']()['addDay'](0x6);}['cpyEndOfWeek'](){return this['cpyStartOfWeek']()['addDay'](0x6);}['startOfMonth'](){return this['setDay'](0x1),this['startOfDay'](),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){return this['setTime'](this['val']['epochMilliseconds'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x5678f8){return a0_0x44e2ea(()=>{return this['cpy']()['toTime']()===a0_0x42b0cb(_0x5678f8,this['zone']);});}['gt'](_0x44844d){return a0_0x44e2ea(()=>{return this['cpy']()['toTime']()>a0_0x42b0cb(_0x44844d,this['zone']);});}['gte'](_0x421714){return a0_0x44e2ea(()=>{return this['cpy']()['toTime']()>=a0_0x42b0cb(_0x421714,this['zone']);});}['lt'](_0x327164){return a0_0x44e2ea(()=>{return this['cpy']()['toTime']()<a0_0x42b0cb(_0x327164,this['zone']);});}['lte'](_0x547484){return a0_0x44e2ea(()=>{return this['cpy']()['toTime']()<=a0_0x42b0cb(_0x547484,this['zone']);});}['btw'](_0x59e7d7,_0x50273f){return a0_0x44e2ea(()=>{const _0x506de1=a0_0x42b0cb(_0x59e7d7,this['zone']),_0x5e920d=a0_0x42b0cb(_0x50273f,this['zone']),_0x1f5f11=this['cpy']()['toTime']();return _0x506de1<_0x1f5f11&&_0x1f5f11<_0x5e920d;});}['btweq'](_0x54c626,_0x345c5e){return a0_0x44e2ea(()=>{const _0x178803=a0_0x42b0cb(_0x54c626,this['zone']),_0xd61801=a0_0x42b0cb(_0x345c5e,this['zone']),_0x2158dc=this['cpy']()['toTime']();return _0x178803<=_0x2158dc&&_0x2158dc<=_0xd61801;});}['btwEqStart'](_0x2bb079,_0x4ba5af){return a0_0x44e2ea(()=>{const _0x244514=a0_0x42b0cb(_0x2bb079,this['zone']),_0x3ca7b7=a0_0x42b0cb(_0x4ba5af,this['zone']),_0x1520dc=this['cpy']()['toTime']();return _0x244514<=_0x1520dc&&_0x1520dc<_0x3ca7b7;});}['btwEqEnd'](_0x5f21c9,_0x4c3bf9){return a0_0x44e2ea(()=>{const _0x5a875c=a0_0x42b0cb(_0x5f21c9,this['zone']),_0x58001d=a0_0x42b0cb(_0x4c3bf9,this['zone']),_0x57e93b=this['cpy']()['toTime']();return _0x5a875c<_0x57e93b&&_0x57e93b<=_0x58001d;});}static['diffDays'](_0x2d9b0e,_0x8c31df,_0x1f98b2){return a0_0x44e2ea(()=>{const _0x486f86=a0_0x42b0cb(_0x2d9b0e,a0_0x275deb),_0x206493=a0_0x42b0cb(_0x8c31df,a0_0x275deb);return _0x1f98b2?Math['abs'](_0x486f86-_0x206493)/0x36ee80/0x18:(_0x486f86-_0x206493)/0x36ee80/0x18;});}static['diffHours'](_0x5a0c77,_0x33340c,_0x1b1689){return a0_0x44e2ea(()=>{const _0x2713d8=a0_0x42b0cb(_0x5a0c77,a0_0x275deb),_0x2684fe=a0_0x42b0cb(_0x33340c,a0_0x275deb);return _0x1b1689?Math['abs'](_0x2713d8-_0x2684fe)/0x36ee80:(_0x2713d8-_0x2684fe)/0x36ee80;});}static['diffMins'](_0x2a26ff,_0x456b11,_0x3029c7){return a0_0x44e2ea(()=>{const _0x4df82e=a0_0x42b0cb(_0x2a26ff,a0_0x275deb),_0x45ddb7=a0_0x42b0cb(_0x456b11,a0_0x275deb);return _0x3029c7?Math['abs'](_0x4df82e-_0x45ddb7)/0x3e8/0x3c:(_0x4df82e-_0x45ddb7)/0x3e8/0x3c;});}static['diffSecs'](_0x4cd39a,_0x57ca37,_0x477d9b){return a0_0x44e2ea(()=>{const _0x2d3275=a0_0x42b0cb(_0x4cd39a,a0_0x275deb),_0x39f3c7=a0_0x42b0cb(_0x57ca37,a0_0x275deb);return _0x477d9b?Math['abs'](_0x2d3275-_0x39f3c7)/0x3e8:(_0x2d3275-_0x39f3c7)/0x3e8;});}static['divideTime'](_0x3ec972){return a0_0x44e2ea(()=>a0_0x42d19e(_0x3ec972));}}exports['MDateUtil']=a0_0x2fbaae;const a0_0x49580b={};a0_0x49580b['value']='MDateUtil',a0_0x49580b['writable']=![],a0_0x49580b['enumerable']=!![],a0_0x49580b['configurable']=![],Object['defineProperty'](a0_0x2fbaae['prototype'],'idkey',a0_0x49580b);
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DateUtil';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var a0_0x113fcc=this&&this['__createBinding']||(Object['create']?function(_0x361c28,_0x43a9fc,_0x9678f9,_0x5a2b2d){if(_0x5a2b2d===undefined)_0x5a2b2d=_0x9678f9;var _0xbb3922=Object['getOwnPropertyDescriptor'](_0x43a9fc,_0x9678f9);if(!_0xbb3922||('get'in _0xbb3922?!_0x43a9fc['__esModule']:_0xbb3922['writable']||_0xbb3922['configurable'])){var _0x2063f0={};_0x2063f0['enumerable']=!![],_0x2063f0['get']=function(){return _0x43a9fc[_0x9678f9];},_0xbb3922=_0x2063f0;}Object['defineProperty'](_0x361c28,_0x5a2b2d,_0xbb3922);}:function(_0x15cd96,_0x40ba73,_0x589e74,_0x11d23e){if(_0x11d23e===undefined)_0x11d23e=_0x589e74;_0x15cd96[_0x11d23e]=_0x40ba73[_0x589e74];}),a0_0x29869e=this&&this['__exportStar']||function(_0x8f5b2d,_0x29d416){for(var _0x49aac5 in _0x8f5b2d)if(_0x49aac5!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x29d416,_0x49aac5))a0_0x113fcc(_0x29d416,_0x8f5b2d,_0x49aac5);},a0_0x406c04={};a0_0x406c04['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x406c04),a0_0x29869e(require('./DateUtil'),exports);
|