mat-date 1.7.33 → 1.7.37
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 +5 -0
- package/dist/DateUtil.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/DateUtil.d.ts
CHANGED
|
@@ -100,5 +100,10 @@ export declare class MDateUtil {
|
|
|
100
100
|
static diffMins(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
|
|
101
101
|
static diffSecs(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
|
|
102
102
|
static s1(m1: MDateUtil | Date | number | string, m2: MDateUtil | Date | number | string, t1: MDateUtil | Date | number | string, t2: MDateUtil | Date | number | string): boolean;
|
|
103
|
+
static sperateTime(value: string): {
|
|
104
|
+
h: number;
|
|
105
|
+
m: number;
|
|
106
|
+
s: number;
|
|
107
|
+
};
|
|
103
108
|
}
|
|
104
109
|
export {};
|
package/dist/DateUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x51f0e6={};a0_0x51f0e6['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x51f0e6),exports['MDateUtil']=void 0x0;const a0_0x3b7ca3=(_0x5ce6f5,_0x372721=0x2)=>_0x5ce6f5['toString']()['padStart'](_0x372721,'0');function a0_0x22ea19(_0x349e1a,_0x2509e8){try{return _0x349e1a();}catch(_0x5e7991){if(_0x2509e8)return _0x2509e8;throw new Error('UNKNOWN');}}function a0_0x22bbca(_0x510ddb){try{if(_0x510ddb instanceof Date)return _0x510ddb['getTime']();if(typeof _0x510ddb==='number')return _0x510ddb;if(typeof _0x510ddb==='string')return new Date(_0x510ddb)['getTime']();if(_0x510ddb instanceof a0_0x4e9882)return _0x510ddb['toTime']();if(_0x510ddb['idkey']==='mdateutil')return _0x510ddb['toTime']();return 0x0;}catch(_0x282b89){throw new Error('ERROR');}}function a0_0x2562ca(_0xf181dc,_0x501acd,_0x583faf,_0x11b89e){const _0x31cc3d=a0_0x22bbca(_0xf181dc),_0xa32729=a0_0x22bbca(_0x501acd),_0x21a074=a0_0x22bbca(_0x583faf),_0x173a69=a0_0x22bbca(_0x11b89e);return _0x21a074<=_0x31cc3d&&_0x173a69>=_0x31cc3d&&_0x173a69<=_0xa32729||_0x21a074>=_0x31cc3d&&_0x21a074<=_0xa32729&&_0x173a69>=_0xa32729||_0x21a074>=_0x31cc3d&&_0x21a074<=_0xa32729&&_0x173a69<=_0xa32729||_0x21a074<=_0x31cc3d&&_0x173a69>=_0xa32729;}class a0_0x4e9882{['val']=new Date();static ['glCode']=undefined;['code']=undefined;get['localCode'](){return this['code'];}static['new'](){return new a0_0x4e9882()['setCode'](a0_0x4e9882['glCode']);}static['setCode'](_0x5e9fd3){return a0_0x4e9882['glCode']=_0x5e9fd3,this;}static['seperator'](){return new Date()['toLocaleDateString'](a0_0x4e9882['glCode'])['replace'](/\d/g,'')['split']('')[0x0];}['cpy'](){return a0_0x4e9882['new']()['setTime'](this['toTime']());}['setCode'](_0x220179){return this['code']=_0x220179,this;}['seperator'](){return new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0];}['zone'](){return a0_0x22ea19(()=>{return Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x34eff2=this['code']){return a0_0x22ea19(()=>{return new Intl['Locale'](_0x34eff2)?.['timeZones']||[];},null);}['region'](_0x479a12=this['code']){return a0_0x22ea19(()=>{return new Intl['Locale'](_0x479a12)['region'];},null);}['year'](){return this['val']['getFullYear']();}['month'](){return this['val']['getMonth']()+0x1;}['monthUtc'](){return this['val']['getMonth']();}['day'](){return this['val']['getDate']();}['hours'](){return this['val']['getHours']();}['min'](){return this['val']['getMinutes']();}['sec'](){return this['val']['getSeconds']();}['dayOfWeek'](){const _0x59ac89=this['val']['getDay']();return _0x59ac89?_0x59ac89:0x7;}['dayOfWeekUtc'](){return this['val']['getDay']();}['setYear'](_0x4f086b){return this['val']['setFullYear'](_0x4f086b),this;}['setMonth'](_0xe2530c){return this['val']['setMonth'](_0xe2530c-0x1),this;}['setMonthUtc'](_0x136ab9){return this['val']['setMonth'](_0x136ab9),this;}['setDay'](_0x7a78ff){return this['val']['setDate'](_0x7a78ff),this;}['setHour'](_0x196824){return this['val']['setHours'](_0x196824),this;}['startOfHours'](){return this['setHour'](0x0),this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setHour'](0x17),this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x546f05){return this['val']['setMinutes'](_0x546f05),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x390c1a){return this['val']['setSeconds'](_0x390c1a),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x3e81c9){return this['val']['setMilliseconds'](_0x3e81c9),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0xa5c92c){return this['val']=new Date(_0xa5c92c),this;}['setTime'](_0x127783){return this['val']=new Date(_0x127783),this;}['setDate'](_0x34b9e9){return this['val']=new Date(_0x34b9e9),this;}['setDateInputValue'](_0x1e19f5){return this['val']=new Date(_0x1e19f5?.['replace']('T','\x20')),this;}['setVal'](_0x590b2e){return a0_0x22ea19(()=>{return a0_0x4e9882['new']()['setTime'](a0_0x22bbca(_0x590b2e));});}['toIsoDate'](){return this['val']['toISOString']();}['toTime'](){return this['val']['getTime']();}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x3b7ca3(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x3b7ca3(this['month']())+'-'+a0_0x3b7ca3(this['day']());}['toTimeInput'](_0x482c59=!![]){const _0xde526c=[];return _0xde526c['push'](a0_0x3b7ca3(this['hours']())),_0xde526c['push'](a0_0x3b7ca3(this['min']())),_0x482c59&&_0xde526c['push'](a0_0x3b7ca3(this['sec']())),_0xde526c['join'](':');}['toDateTimeInput'](_0x1890cc=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x1890cc);}['strDate'](){const _0x474731={};return _0x474731['month']='2-digit',_0x474731['day']='2-digit',_0x474731['year']='numeric',this['val']['toLocaleDateString'](this['code'],_0x474731);}['strDateLocal'](_0x251540){return this['val']['toLocaleDateString'](this['code'],_0x251540);}['strTime'](){return a0_0x3b7ca3(this['hours']())+':'+a0_0x3b7ca3(this['min']())+':'+a0_0x3b7ca3(this['sec']());}['strTimeLocale'](_0x22c507){return this['val']['toLocaleTimeString'](this['code'],_0x22c507);}['strHHmm'](){return a0_0x3b7ca3(this['hours']())+':'+a0_0x3b7ca3(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x53b2f9){return this['val']['toLocaleString'](this['code'],_0x53b2f9);}['addDay'](_0xb3c216){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0xb3c216*0x18)),this;}['addHours'](_0x5342e7){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x5342e7)),this;}['addMins'](_0xef64e4){return this['val']=new Date(this['val']['setMinutes'](this['val']['getMinutes']()+_0xef64e4)),this;}['startOfDay'](){return this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return 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['setDate'](this['val'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0xe85942){return a0_0x22ea19(()=>{return this['cpy']()['toTime']()===a0_0x22bbca(_0xe85942);});}['gt'](_0x5819e7){return a0_0x22ea19(()=>{return this['cpy']()['toTime']()>a0_0x22bbca(_0x5819e7);});}['gte'](_0x5a6683){return a0_0x22ea19(()=>{return this['cpy']()['toTime']()>=a0_0x22bbca(_0x5a6683);});}['lt'](_0x12007e){return a0_0x22ea19(()=>{return this['cpy']()['toTime']()<a0_0x22bbca(_0x12007e);});}['lte'](_0x31e1f6){return a0_0x22ea19(()=>{return this['cpy']()['toTime']()<=a0_0x22bbca(_0x31e1f6);});}['btw'](_0x3278f0,_0x20a522){return a0_0x22ea19(()=>{const _0x53367a=a0_0x22bbca(_0x3278f0),_0x19b07d=a0_0x22bbca(_0x20a522),_0x1f7bbc=this['cpy']()['toTime']();return _0x53367a<_0x1f7bbc&&_0x1f7bbc<_0x19b07d;});}['btweq'](_0x22548e,_0x44e168){return a0_0x22ea19(()=>{const _0x287d2c=a0_0x22bbca(_0x22548e),_0x28af0c=a0_0x22bbca(_0x44e168),_0xa0026e=this['cpy']()['toTime']();return _0x287d2c<=_0xa0026e&&_0xa0026e<=_0x28af0c;});}['btwEqStart'](_0x455a4b,_0x1c257f){return a0_0x22ea19(()=>{const _0x5620da=a0_0x22bbca(_0x455a4b),_0x1d3bc8=a0_0x22bbca(_0x1c257f),_0x104b25=this['cpy']()['toTime']();return _0x5620da<=_0x104b25&&_0x104b25<_0x1d3bc8;});}['btwEqEnd'](_0x1626d7,_0x4d926b){return a0_0x22ea19(()=>{const _0x3612ff=a0_0x22bbca(_0x1626d7),_0xa71e5d=a0_0x22bbca(_0x4d926b),_0x6d3d70=this['cpy']()['toTime']();return _0x3612ff<_0x6d3d70&&_0x6d3d70<=_0xa71e5d;});}static['diffDays'](_0x58a9ce,_0x433791,_0x2bb30b){return a0_0x22ea19(()=>{const _0x57e810=a0_0x22bbca(_0x58a9ce),_0x552b7f=a0_0x22bbca(_0x433791);return _0x2bb30b?Math['abs'](_0x57e810-_0x552b7f)/0x36ee80/0x18:(_0x57e810-_0x552b7f)/0x36ee80/0x18;});}static['diffHours'](_0x80f85a,_0x54f6ff,_0x306119){return a0_0x22ea19(()=>{const _0x37924d=a0_0x22bbca(_0x80f85a),_0x54936d=a0_0x22bbca(_0x54f6ff);return _0x306119?Math['abs'](_0x37924d-_0x54936d)/0x36ee80:(_0x37924d-_0x54936d)/0x36ee80;});}static['diffMins'](_0x25684f,_0x470a9c,_0x15bea9){return a0_0x22ea19(()=>{const _0x5e03ca=a0_0x22bbca(_0x25684f),_0x5aec1f=a0_0x22bbca(_0x470a9c);return _0x15bea9?Math['abs'](_0x5e03ca-_0x5aec1f)/0x3e8/0x3c:(_0x5e03ca-_0x5aec1f)/0x3e8/0x3c;});}static['diffSecs'](_0x4b5ebc,_0x5c9156,_0xcba299){return a0_0x22ea19(()=>{const _0x521862=a0_0x22bbca(_0x4b5ebc),_0x5b6065=a0_0x22bbca(_0x5c9156);return _0xcba299?Math['abs'](_0x521862-_0x5b6065)/0x3e8:(_0x521862-_0x5b6065)/0x3e8;});}static['s1'](_0x1b51e4,_0x395e5b,_0x20f83d,_0x74f4b4){return a0_0x22ea19(()=>a0_0x2562ca(_0x1b51e4,_0x395e5b,_0x20f83d,_0x74f4b4));}}exports['MDateUtil']=a0_0x4e9882;const a0_0x48bd7f={};a0_0x48bd7f['value']='mdateutil',a0_0x48bd7f['writable']=![],a0_0x48bd7f['enumerable']=!![],a0_0x48bd7f['configurable']=![],Object['defineProperty'](a0_0x4e9882['prototype'],'idkey',a0_0x48bd7f);
|
|
1
|
+
'use strict';const a0_0x3178b0={};a0_0x3178b0['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3178b0),exports['MDateUtil']=void 0x0;const a0_0x1db59b=(_0x416d40,_0x48475b=0x2)=>_0x416d40['toString']()['padStart'](_0x48475b,'0');function a0_0x429b65(_0x376eda,_0x4729e5){try{return _0x376eda();}catch(_0x1a43ca){if(_0x4729e5)return _0x4729e5;throw new Error('UNKNOWN');}}function a0_0xd971f0(_0xd858a1){try{if(_0xd858a1 instanceof Date)return _0xd858a1['getTime']();if(typeof _0xd858a1==='number')return _0xd858a1;if(typeof _0xd858a1==='string')return new Date(_0xd858a1)['getTime']();if(_0xd858a1 instanceof a0_0x19a044)return _0xd858a1['toTime']();if(_0xd858a1['idkey']==='mdateutil')return _0xd858a1['toTime']();return 0x0;}catch(_0x39a5d0){throw new Error('ERROR');}}function a0_0x4c16a5(_0x19c712,_0x210b2e,_0x38c960,_0x4ff0c8){const _0x34c385=a0_0xd971f0(_0x19c712),_0x2a4a8e=a0_0xd971f0(_0x210b2e),_0x45bb17=a0_0xd971f0(_0x38c960),_0x5eb562=a0_0xd971f0(_0x4ff0c8);return _0x45bb17<=_0x34c385&&_0x5eb562>=_0x34c385&&_0x5eb562<=_0x2a4a8e||_0x45bb17>=_0x34c385&&_0x45bb17<=_0x2a4a8e&&_0x5eb562>=_0x2a4a8e||_0x45bb17>=_0x34c385&&_0x45bb17<=_0x2a4a8e&&_0x5eb562<=_0x2a4a8e||_0x45bb17<=_0x34c385&&_0x5eb562>=_0x2a4a8e;}function a0_0x508b0c(_0x2b11a2){let _0x5c6d56=0x0,_0x20a129=0x0,_0x4a1549=0x0;const _0x100f4a=a0_0x19a044['new']()['startOfDay']();try{const _0x3326fb=(_0x2b11a2||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x5c6d56=Number(_0x3326fb['length']>=0x1?_0x3326fb[0x0]:0x0),_0x20a129=Number(_0x3326fb['length']>=0x2?_0x3326fb[0x1]:0x0),_0x4a1549=Number(_0x3326fb['length']>=0x3?_0x3326fb[0x2]:0x0);}catch(_0x585612){}return _0x100f4a['setHour'](_0x5c6d56),_0x100f4a['setMin'](_0x20a129),_0x100f4a['setSeconds'](_0x4a1549),{'h':_0x100f4a['hours'](),'m':_0x100f4a['min'](),'s':_0x100f4a['sec']()};}class a0_0x19a044{['val']=new Date();static ['glCode']=undefined;['code']=undefined;get['localCode'](){return this['code'];}static['new'](){return new a0_0x19a044()['setCode'](a0_0x19a044['glCode']);}static['setCode'](_0x2179f7){return a0_0x19a044['glCode']=_0x2179f7,this;}static['seperator'](){return new Date()['toLocaleDateString'](a0_0x19a044['glCode'])['replace'](/\d/g,'')['split']('')[0x0];}['cpy'](){return a0_0x19a044['new']()['setTime'](this['toTime']());}['setCode'](_0x336cc5){return this['code']=_0x336cc5,this;}['seperator'](){return new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0];}['zone'](){return a0_0x429b65(()=>{return Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x1b8dc3=this['code']){return a0_0x429b65(()=>{return new Intl['Locale'](_0x1b8dc3)?.['timeZones']||[];},null);}['region'](_0x3de0d7=this['code']){return a0_0x429b65(()=>{return new Intl['Locale'](_0x3de0d7)['region'];},null);}['year'](){return this['val']['getFullYear']();}['month'](){return this['val']['getMonth']()+0x1;}['monthUtc'](){return this['val']['getMonth']();}['day'](){return this['val']['getDate']();}['hours'](){return this['val']['getHours']();}['min'](){return this['val']['getMinutes']();}['sec'](){return this['val']['getSeconds']();}['dayOfWeek'](){const _0x17acce=this['val']['getDay']();return _0x17acce?_0x17acce:0x7;}['dayOfWeekUtc'](){return this['val']['getDay']();}['setYear'](_0x1276b4){return this['val']['setFullYear'](_0x1276b4),this;}['setMonth'](_0x5a47af){return this['val']['setMonth'](_0x5a47af-0x1),this;}['setMonthUtc'](_0x571d5e){return this['val']['setMonth'](_0x571d5e),this;}['setDay'](_0x94702a){return this['val']['setDate'](_0x94702a),this;}['setHour'](_0x182d0e){return this['val']['setHours'](_0x182d0e),this;}['startOfHours'](){return this['setHour'](0x0),this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setHour'](0x17),this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x1f82ef){return this['val']['setMinutes'](_0x1f82ef),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x5b0925){return this['val']['setSeconds'](_0x5b0925),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0xaf6395){return this['val']['setMilliseconds'](_0xaf6395),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x347f80){return this['val']=new Date(_0x347f80),this;}['setTime'](_0x59c11d){return this['val']=new Date(_0x59c11d),this;}['setDate'](_0x5674f9){return this['val']=new Date(_0x5674f9),this;}['setDateInputValue'](_0x3b87a3){return this['val']=new Date(_0x3b87a3?.['replace']('T','\x20')),this;}['setVal'](_0x2d1089){return a0_0x429b65(()=>{return a0_0x19a044['new']()['setTime'](a0_0xd971f0(_0x2d1089));});}['toIsoDate'](){return this['val']['toISOString']();}['toTime'](){return this['val']['getTime']();}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x1db59b(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x1db59b(this['month']())+'-'+a0_0x1db59b(this['day']());}['toTimeInput'](_0x52b8a3=!![]){const _0x20df87=[];return _0x20df87['push'](a0_0x1db59b(this['hours']())),_0x20df87['push'](a0_0x1db59b(this['min']())),_0x52b8a3&&_0x20df87['push'](a0_0x1db59b(this['sec']())),_0x20df87['join'](':');}['toDateTimeInput'](_0x1c3f7e=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x1c3f7e);}['strDate'](){const _0x4a15f5={};return _0x4a15f5['month']='2-digit',_0x4a15f5['day']='2-digit',_0x4a15f5['year']='numeric',this['val']['toLocaleDateString'](this['code'],_0x4a15f5);}['strDateLocal'](_0x2cd569){return this['val']['toLocaleDateString'](this['code'],_0x2cd569);}['strTime'](){return a0_0x1db59b(this['hours']())+':'+a0_0x1db59b(this['min']())+':'+a0_0x1db59b(this['sec']());}['strTimeLocale'](_0x2379ff){return this['val']['toLocaleTimeString'](this['code'],_0x2379ff);}['strHHmm'](){return a0_0x1db59b(this['hours']())+':'+a0_0x1db59b(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x2494ad){return this['val']['toLocaleString'](this['code'],_0x2494ad);}['addDay'](_0x1fce8e){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x1fce8e*0x18)),this;}['addHours'](_0x3d4591){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x3d4591)),this;}['addMins'](_0x2fe300){return this['val']=new Date(this['val']['setMinutes'](this['val']['getMinutes']()+_0x2fe300)),this;}['startOfDay'](){return this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return 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['setDate'](this['val'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x5ef4cd){return a0_0x429b65(()=>{return this['cpy']()['toTime']()===a0_0xd971f0(_0x5ef4cd);});}['gt'](_0xa0d0a1){return a0_0x429b65(()=>{return this['cpy']()['toTime']()>a0_0xd971f0(_0xa0d0a1);});}['gte'](_0x36994b){return a0_0x429b65(()=>{return this['cpy']()['toTime']()>=a0_0xd971f0(_0x36994b);});}['lt'](_0x15fdb7){return a0_0x429b65(()=>{return this['cpy']()['toTime']()<a0_0xd971f0(_0x15fdb7);});}['lte'](_0x3c01d3){return a0_0x429b65(()=>{return this['cpy']()['toTime']()<=a0_0xd971f0(_0x3c01d3);});}['btw'](_0x284df3,_0x4a388f){return a0_0x429b65(()=>{const _0x4930e9=a0_0xd971f0(_0x284df3),_0x4200de=a0_0xd971f0(_0x4a388f),_0x4688f9=this['cpy']()['toTime']();return _0x4930e9<_0x4688f9&&_0x4688f9<_0x4200de;});}['btweq'](_0x47ce03,_0x375f2a){return a0_0x429b65(()=>{const _0x8d0d79=a0_0xd971f0(_0x47ce03),_0x70e7d3=a0_0xd971f0(_0x375f2a),_0x5eab69=this['cpy']()['toTime']();return _0x8d0d79<=_0x5eab69&&_0x5eab69<=_0x70e7d3;});}['btwEqStart'](_0x513c5b,_0x5ab224){return a0_0x429b65(()=>{const _0x3549ff=a0_0xd971f0(_0x513c5b),_0x2f3363=a0_0xd971f0(_0x5ab224),_0x2e4273=this['cpy']()['toTime']();return _0x3549ff<=_0x2e4273&&_0x2e4273<_0x2f3363;});}['btwEqEnd'](_0xcab208,_0x58825b){return a0_0x429b65(()=>{const _0x4617e5=a0_0xd971f0(_0xcab208),_0x720479=a0_0xd971f0(_0x58825b),_0x4fe80c=this['cpy']()['toTime']();return _0x4617e5<_0x4fe80c&&_0x4fe80c<=_0x720479;});}static['diffDays'](_0x753770,_0x20a321,_0x442db9){return a0_0x429b65(()=>{const _0x353ce0=a0_0xd971f0(_0x753770),_0x38115b=a0_0xd971f0(_0x20a321);return _0x442db9?Math['abs'](_0x353ce0-_0x38115b)/0x36ee80/0x18:(_0x353ce0-_0x38115b)/0x36ee80/0x18;});}static['diffHours'](_0x4c943d,_0x50f623,_0x19fa29){return a0_0x429b65(()=>{const _0x37c8fc=a0_0xd971f0(_0x4c943d),_0x3b1562=a0_0xd971f0(_0x50f623);return _0x19fa29?Math['abs'](_0x37c8fc-_0x3b1562)/0x36ee80:(_0x37c8fc-_0x3b1562)/0x36ee80;});}static['diffMins'](_0x283e7f,_0x1037c6,_0x464195){return a0_0x429b65(()=>{const _0x5876c5=a0_0xd971f0(_0x283e7f),_0x27f0ba=a0_0xd971f0(_0x1037c6);return _0x464195?Math['abs'](_0x5876c5-_0x27f0ba)/0x3e8/0x3c:(_0x5876c5-_0x27f0ba)/0x3e8/0x3c;});}static['diffSecs'](_0x13c566,_0x25c342,_0x43c0cc){return a0_0x429b65(()=>{const _0x44be3c=a0_0xd971f0(_0x13c566),_0x483fb0=a0_0xd971f0(_0x25c342);return _0x43c0cc?Math['abs'](_0x44be3c-_0x483fb0)/0x3e8:(_0x44be3c-_0x483fb0)/0x3e8;});}static['s1'](_0x1eb0f1,_0x37a7ec,_0x53a752,_0x358e0e){return a0_0x429b65(()=>a0_0x4c16a5(_0x1eb0f1,_0x37a7ec,_0x53a752,_0x358e0e));}static['sperateTime'](_0x19534a){return a0_0x429b65(()=>a0_0x508b0c(_0x19534a));}}exports['MDateUtil']=a0_0x19a044;const a0_0x4a707d={};a0_0x4a707d['value']='mdateutil',a0_0x4a707d['writable']=![],a0_0x4a707d['enumerable']=!![],a0_0x4a707d['configurable']=![],Object['defineProperty'](a0_0x19a044['prototype'],'idkey',a0_0x4a707d);
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x1c5a38=this&&this['__createBinding']||(Object['create']?function(_0x270330,_0x4ff074,_0x2fe23c,_0x19195a){if(_0x19195a===undefined)_0x19195a=_0x2fe23c;var _0x13a2b2=Object['getOwnPropertyDescriptor'](_0x4ff074,_0x2fe23c);if(!_0x13a2b2||('get'in _0x13a2b2?!_0x4ff074['__esModule']:_0x13a2b2['writable']||_0x13a2b2['configurable'])){var _0x35726d={};_0x35726d['enumerable']=!![],_0x35726d['get']=function(){return _0x4ff074[_0x2fe23c];},_0x13a2b2=_0x35726d;}Object['defineProperty'](_0x270330,_0x19195a,_0x13a2b2);}:function(_0xae276f,_0x506062,_0x24b505,_0x3f8372){if(_0x3f8372===undefined)_0x3f8372=_0x24b505;_0xae276f[_0x3f8372]=_0x506062[_0x24b505];}),a0_0xc2aa2b=this&&this['__exportStar']||function(_0x3ee1e0,_0x52a4f0){for(var _0x59b923 in _0x3ee1e0)if(_0x59b923!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x52a4f0,_0x59b923))a0_0x1c5a38(_0x52a4f0,_0x3ee1e0,_0x59b923);},a0_0x3d7ecb={};a0_0x3d7ecb['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3d7ecb),a0_0xc2aa2b(require('./DateUtil'),exports);
|