mat-date 1.7.41 → 1.7.47

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.
@@ -34,6 +34,7 @@ export declare class MDateUtil {
34
34
  hours(): number;
35
35
  min(): number;
36
36
  sec(): number;
37
+ msec(): number;
37
38
  dayOfWeek(): number;
38
39
  dayOfWeekUtc(): number;
39
40
  setYear(value: number): this;
@@ -71,6 +72,13 @@ export declare class MDateUtil {
71
72
  strHHmm(): string;
72
73
  str(): string;
73
74
  strLocal(options: IStrOptions): string;
75
+ strYears(): string;
76
+ strMounth(): string;
77
+ strDay(): string;
78
+ strHour(): string;
79
+ strMin(): string;
80
+ strSec(): string;
81
+ strMsec(): string;
74
82
  addDay(value: number): this;
75
83
  addHours(value: number): this;
76
84
  addMins(value: number): this;
package/dist/DateUtil.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x22bca3={};a0_0x22bca3['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x22bca3),exports['MDateUtil']=void 0x0;const a0_0x31239e=(_0x3b4dd9,_0x20bb14=0x2)=>_0x3b4dd9['toString']()['padStart'](_0x20bb14,'0');function a0_0x1252fe(_0x4a2d36,_0x5846e8){try{return _0x4a2d36();}catch(_0x30732d){if(_0x5846e8)return _0x5846e8;throw new Error('UNKNOWN');}}function a0_0x297328(_0xeb604){try{if(_0xeb604 instanceof Date)return _0xeb604['getTime']();if(typeof _0xeb604==='number')return _0xeb604;if(typeof _0xeb604==='string')return new Date(_0xeb604)['getTime']();if(_0xeb604 instanceof a0_0x488665)return _0xeb604['toTime']();if(_0xeb604['idkey']==='mdateutil')return _0xeb604['toTime']();return 0x0;}catch(_0x2ebb75){throw new Error('ERROR');}}function a0_0x1f4ba1(_0x4f8544,_0x535fb2,_0x27a89e,_0x2f8904){const _0x279a55=a0_0x297328(_0x4f8544),_0x6913b=a0_0x297328(_0x535fb2),_0x5a9265=a0_0x297328(_0x27a89e),_0x4c8141=a0_0x297328(_0x2f8904);return _0x5a9265<=_0x279a55&&_0x4c8141>=_0x279a55&&_0x4c8141<=_0x6913b||_0x5a9265>=_0x279a55&&_0x5a9265<=_0x6913b&&_0x4c8141>=_0x6913b||_0x5a9265>=_0x279a55&&_0x5a9265<=_0x6913b&&_0x4c8141<=_0x6913b||_0x5a9265<=_0x279a55&&_0x4c8141>=_0x6913b;}function a0_0x53c7f7(_0x25c120){let _0x235fcb=0x0,_0x9d303a=0x0,_0x29d0d3=0x0,_0x22f53b=0x0;const _0x427758=a0_0x488665['new']()['startOfDay']();try{const _0x4c8a94=(_0x25c120||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x235fcb=Number(_0x4c8a94['length']>=0x1?_0x4c8a94[0x0]:0x0),_0x9d303a=Number(_0x4c8a94['length']>=0x2?_0x4c8a94[0x1]:0x0),_0x29d0d3=Number(_0x4c8a94['length']>=0x3?_0x4c8a94[0x2]:0x0);}catch(_0x131f9c){}try{let _0x2ab177=_0x25c120||'',_0x5bc377=/\.\d{3}/g,_0x1d75aa=_0x2ab177['match'](_0x5bc377)[0x0]['split']('.')['filter'](_0x1f50ba=>Boolean(_0x1f50ba));_0x22f53b=Number(_0x1d75aa['length']>=0x1?_0x1d75aa[0x0]:0x0);}catch(_0x58e1f3){}return _0x427758['setHour'](_0x235fcb),_0x427758['setMin'](_0x9d303a),_0x427758['setSeconds'](_0x29d0d3),{'h':_0x427758['hours'](),'m':_0x427758['min'](),'s':_0x427758['sec'](),'ms':_0x22f53b};}class a0_0x488665{['val']=new Date();static ['glCode']=undefined;['code']=undefined;get['localCode'](){return this['code'];}static['new'](){return new a0_0x488665()['setCode'](a0_0x488665['glCode']);}static['setCode'](_0x220165){return a0_0x488665['glCode']=_0x220165,this;}static['seperator'](){return new Date()['toLocaleDateString'](a0_0x488665['glCode'])['replace'](/\d/g,'')['split']('')[0x0];}['cpy'](){return a0_0x488665['new']()['setTime'](this['toTime']());}['setCode'](_0x19f3ed){return this['code']=_0x19f3ed,this;}['seperator'](){return new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0];}['zone'](){return a0_0x1252fe(()=>{return Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x1027eb=this['code']){return a0_0x1252fe(()=>{return new Intl['Locale'](_0x1027eb)?.['timeZones']||[];},null);}['region'](_0x357df6=this['code']){return a0_0x1252fe(()=>{return new Intl['Locale'](_0x357df6)['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 _0x23de42=this['val']['getDay']();return _0x23de42?_0x23de42:0x7;}['dayOfWeekUtc'](){return this['val']['getDay']();}['setYear'](_0x132b68){return this['val']['setFullYear'](_0x132b68),this;}['setMonth'](_0x274deb){return this['val']['setMonth'](_0x274deb-0x1),this;}['setMonthUtc'](_0x5cb142){return this['val']['setMonth'](_0x5cb142),this;}['setDay'](_0x496357){return this['val']['setDate'](_0x496357),this;}['setHour'](_0x5ef722){return this['val']['setHours'](_0x5ef722),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'](_0x36b512){return this['val']['setMinutes'](_0x36b512),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x107daf){return this['val']['setSeconds'](_0x107daf),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x3c5904){return this['val']['setMilliseconds'](_0x3c5904),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x323947){return this['val']=new Date(_0x323947),this;}['setTime'](_0xb598f7){return this['val']=new Date(_0xb598f7),this;}['setDate'](_0x52dd90){return this['val']=new Date(_0x52dd90),this;}['setDateInputValue'](_0x1c9d86){return this['val']=new Date(_0x1c9d86?.['replace']('T','\x20')),this;}['setVal'](_0x17d76d){return a0_0x1252fe(()=>{return a0_0x488665['new']()['setTime'](a0_0x297328(_0x17d76d));});}['toIsoDate'](){return this['val']['toISOString']();}['toTime'](){return this['val']['getTime']();}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x31239e(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x31239e(this['month']())+'-'+a0_0x31239e(this['day']());}['toTimeInput'](_0x2f784b=!![]){const _0x2d781d=[];return _0x2d781d['push'](a0_0x31239e(this['hours']())),_0x2d781d['push'](a0_0x31239e(this['min']())),_0x2f784b&&_0x2d781d['push'](a0_0x31239e(this['sec']())),_0x2d781d['join'](':');}['toDateTimeInput'](_0x5c9f0e=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x5c9f0e);}['strDate'](){const _0xd303d7={};return _0xd303d7['month']='2-digit',_0xd303d7['day']='2-digit',_0xd303d7['year']='numeric',this['val']['toLocaleDateString'](this['code'],_0xd303d7);}['strDateLocal'](_0x4fca9b){return this['val']['toLocaleDateString'](this['code'],_0x4fca9b);}['strTime'](){return a0_0x31239e(this['hours']())+':'+a0_0x31239e(this['min']())+':'+a0_0x31239e(this['sec']());}['strTimeLocale'](_0x35a179){return this['val']['toLocaleTimeString'](this['code'],_0x35a179);}['strHHmm'](){return a0_0x31239e(this['hours']())+':'+a0_0x31239e(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x445c61){return this['val']['toLocaleString'](this['code'],_0x445c61);}['addDay'](_0x4648a4){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x4648a4*0x18)),this;}['addHours'](_0x3735b4){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x3735b4)),this;}['addMins'](_0x1f5dfa){return this['val']=new Date(this['val']['setMinutes'](this['val']['getMinutes']()+_0x1f5dfa)),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'](_0x4ed67d){return a0_0x1252fe(()=>{return this['cpy']()['toTime']()===a0_0x297328(_0x4ed67d);});}['gt'](_0x2e3fc8){return a0_0x1252fe(()=>{return this['cpy']()['toTime']()>a0_0x297328(_0x2e3fc8);});}['gte'](_0x38b6e9){return a0_0x1252fe(()=>{return this['cpy']()['toTime']()>=a0_0x297328(_0x38b6e9);});}['lt'](_0x2c255c){return a0_0x1252fe(()=>{return this['cpy']()['toTime']()<a0_0x297328(_0x2c255c);});}['lte'](_0xafa772){return a0_0x1252fe(()=>{return this['cpy']()['toTime']()<=a0_0x297328(_0xafa772);});}['btw'](_0x175163,_0x24d1b0){return a0_0x1252fe(()=>{const _0x3b086f=a0_0x297328(_0x175163),_0x257e5d=a0_0x297328(_0x24d1b0),_0x488ccd=this['cpy']()['toTime']();return _0x3b086f<_0x488ccd&&_0x488ccd<_0x257e5d;});}['btweq'](_0x46380e,_0x5e12fd){return a0_0x1252fe(()=>{const _0x3767cc=a0_0x297328(_0x46380e),_0x13b713=a0_0x297328(_0x5e12fd),_0x4c3020=this['cpy']()['toTime']();return _0x3767cc<=_0x4c3020&&_0x4c3020<=_0x13b713;});}['btwEqStart'](_0x3fa3c8,_0x3323e1){return a0_0x1252fe(()=>{const _0x29a060=a0_0x297328(_0x3fa3c8),_0x384658=a0_0x297328(_0x3323e1),_0x293780=this['cpy']()['toTime']();return _0x29a060<=_0x293780&&_0x293780<_0x384658;});}['btwEqEnd'](_0x5a5907,_0x5bf060){return a0_0x1252fe(()=>{const _0x34e3bd=a0_0x297328(_0x5a5907),_0x21c6be=a0_0x297328(_0x5bf060),_0x4ac7ed=this['cpy']()['toTime']();return _0x34e3bd<_0x4ac7ed&&_0x4ac7ed<=_0x21c6be;});}static['diffDays'](_0x380fd4,_0x34a24a,_0x32d002){return a0_0x1252fe(()=>{const _0x2a82c1=a0_0x297328(_0x380fd4),_0x5512d2=a0_0x297328(_0x34a24a);return _0x32d002?Math['abs'](_0x2a82c1-_0x5512d2)/0x36ee80/0x18:(_0x2a82c1-_0x5512d2)/0x36ee80/0x18;});}static['diffHours'](_0x2832ee,_0x50d1be,_0x2f2942){return a0_0x1252fe(()=>{const _0x4df64f=a0_0x297328(_0x2832ee),_0x8ab7ae=a0_0x297328(_0x50d1be);return _0x2f2942?Math['abs'](_0x4df64f-_0x8ab7ae)/0x36ee80:(_0x4df64f-_0x8ab7ae)/0x36ee80;});}static['diffMins'](_0x247541,_0x1c5fdf,_0x4b4e89){return a0_0x1252fe(()=>{const _0x56050f=a0_0x297328(_0x247541),_0x4910e3=a0_0x297328(_0x1c5fdf);return _0x4b4e89?Math['abs'](_0x56050f-_0x4910e3)/0x3e8/0x3c:(_0x56050f-_0x4910e3)/0x3e8/0x3c;});}static['diffSecs'](_0x2f47d1,_0x9a775c,_0x3f54bf){return a0_0x1252fe(()=>{const _0x3861f5=a0_0x297328(_0x2f47d1),_0x224b08=a0_0x297328(_0x9a775c);return _0x3f54bf?Math['abs'](_0x3861f5-_0x224b08)/0x3e8:(_0x3861f5-_0x224b08)/0x3e8;});}static['s1'](_0x258730,_0x29c564,_0x4c26c7,_0x54f42f){return a0_0x1252fe(()=>a0_0x1f4ba1(_0x258730,_0x29c564,_0x4c26c7,_0x54f42f));}static['divideTime'](_0xf44cce){return a0_0x1252fe(()=>a0_0x53c7f7(_0xf44cce));}}exports['MDateUtil']=a0_0x488665;const a0_0xb105ad={};a0_0xb105ad['value']='mdateutil',a0_0xb105ad['writable']=![],a0_0xb105ad['enumerable']=!![],a0_0xb105ad['configurable']=![],Object['defineProperty'](a0_0x488665['prototype'],'idkey',a0_0xb105ad);
1
+ 'use strict';const a0_0x3f301f={};a0_0x3f301f['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3f301f),exports['MDateUtil']=void 0x0;const a0_0x3ea3eb=(_0x352a01,_0x4edae7=0x2)=>_0x352a01['toString']()['padStart'](_0x4edae7,'0');function a0_0x3a0037(_0x2b95ea,_0x23aa81){try{return _0x2b95ea();}catch(_0x451ef0){if(_0x23aa81)return _0x23aa81;throw new Error('UNKNOWN');}}function a0_0x133b33(_0x43581f){try{if(_0x43581f instanceof Date)return _0x43581f['getTime']();if(typeof _0x43581f==='number')return _0x43581f;if(typeof _0x43581f==='string')return new Date(_0x43581f)['getTime']();if(_0x43581f instanceof a0_0x40e32c)return _0x43581f['toTime']();if(_0x43581f['idkey']==='mdateutil')return _0x43581f['toTime']();return 0x0;}catch(_0x54cd85){throw new Error('ERROR');}}function a0_0x4f9b9f(_0x1ca66c,_0xbfa9a5,_0x5aa338,_0x4dc152){const _0x392649=a0_0x133b33(_0x1ca66c),_0x2e04b6=a0_0x133b33(_0xbfa9a5),_0x43a20c=a0_0x133b33(_0x5aa338),_0x59b070=a0_0x133b33(_0x4dc152);return _0x43a20c<=_0x392649&&_0x59b070>=_0x392649&&_0x59b070<=_0x2e04b6||_0x43a20c>=_0x392649&&_0x43a20c<=_0x2e04b6&&_0x59b070>=_0x2e04b6||_0x43a20c>=_0x392649&&_0x43a20c<=_0x2e04b6&&_0x59b070<=_0x2e04b6||_0x43a20c<=_0x392649&&_0x59b070>=_0x2e04b6;}function a0_0x3b8e61(_0x346089){let _0x266d5a=undefined,_0x41f7a4=undefined,_0xbad5d4=undefined,_0x25e2ec=undefined;try{const _0x20931e=(_0x346089||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x266d5a=_0x20931e['length']>=0x1?Number(_0x20931e[0x0]):undefined,_0x41f7a4=_0x20931e['length']>=0x2?Number(_0x20931e[0x1]):undefined,_0xbad5d4=_0x20931e['length']>=0x3?Number(_0x20931e[0x2]):undefined;}catch(_0x7fee30){}try{let _0x546c79=_0x346089||'',_0x273e13=/\.\d{3}/g,_0x50211b=_0x546c79['match'](_0x273e13)[0x0]['split']('.')['filter'](_0x27fb1a=>Boolean(_0x27fb1a));_0x25e2ec=_0x50211b['length']>=0x1?Number(_0x50211b[0x0]):undefined;}catch(_0x2bcca){}const _0xa78fba={};return _0xa78fba['h']=_0x266d5a,_0xa78fba['m']=_0x41f7a4,_0xa78fba['s']=_0xbad5d4,_0xa78fba['ms']=_0x25e2ec,_0xa78fba;}class a0_0x40e32c{['val']=new Date();static ['glCode']=undefined;['code']=undefined;get['localCode'](){return this['code'];}static['new'](){return new a0_0x40e32c()['setCode'](a0_0x40e32c['glCode']);}static['setCode'](_0x11b340){return a0_0x40e32c['glCode']=_0x11b340,this;}static['seperator'](){return a0_0x3a0037(()=>new Date()['toLocaleDateString'](a0_0x40e32c['glCode'])['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x3a0037(()=>a0_0x40e32c['new']()['setTime'](this['toTime']()));}['setCode'](_0x4906a3){return this['code']=_0x4906a3,this;}['seperator'](){return a0_0x3a0037(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['zone'](){return a0_0x3a0037(()=>{return Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x47f7ce=this['code']){return a0_0x3a0037(()=>{return new Intl['Locale'](_0x47f7ce)?.['timeZones']||[];},null);}['region'](_0x570381=this['code']){return a0_0x3a0037(()=>{return new Intl['Locale'](_0x570381)['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']();}['msec'](){return this['val']['getMilliseconds']();}['dayOfWeek'](){const _0x5439e0=this['val']['getDay']();return _0x5439e0?_0x5439e0:0x7;}['dayOfWeekUtc'](){return this['val']['getDay']();}['setYear'](_0x439d11){return this['val']['setFullYear'](_0x439d11),this;}['setMonth'](_0x1063c7){return this['val']['setMonth'](_0x1063c7-0x1),this;}['setMonthUtc'](_0x3d4f53){return this['val']['setMonth'](_0x3d4f53),this;}['setDay'](_0x24a548){return this['val']['setDate'](_0x24a548),this;}['setHour'](_0xba5273){return this['val']['setHours'](_0xba5273),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'](_0x12865b){return this['val']['setMinutes'](_0x12865b),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x1444b1){return this['val']['setSeconds'](_0x1444b1),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x13283e){return this['val']['setMilliseconds'](_0x13283e),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x5cbd08){return this['val']=new Date(_0x5cbd08),this;}['setTime'](_0x4abf77){return this['val']=new Date(_0x4abf77),this;}['setDate'](_0x322afe){return this['val']=new Date(_0x322afe),this;}['setDateInputValue'](_0xdfc731){return this['val']=new Date(_0xdfc731?.['replace']('T','\x20')),this;}['setVal'](_0x27b5d9){return a0_0x3a0037(()=>{return a0_0x40e32c['new']()['setTime'](a0_0x133b33(_0x27b5d9));});}['toIsoDate'](){return this['val']['toISOString']();}['toTime'](){return this['val']['getTime']();}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x3ea3eb(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x3ea3eb(this['month']())+'-'+a0_0x3ea3eb(this['day']());}['toTimeInput'](_0x32178b=!![]){const _0x435045=[];return _0x435045['push'](a0_0x3ea3eb(this['hours']())),_0x435045['push'](a0_0x3ea3eb(this['min']())),_0x32178b&&_0x435045['push'](a0_0x3ea3eb(this['sec']())),_0x435045['join'](':');}['toDateTimeInput'](_0x43787a=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x43787a);}['strDate'](){const _0x3c6caf={};return _0x3c6caf['month']='2-digit',_0x3c6caf['day']='2-digit',_0x3c6caf['year']='numeric',this['val']['toLocaleDateString'](this['code'],_0x3c6caf);}['strDateLocal'](_0x2f7e21){return this['val']['toLocaleDateString'](this['code'],_0x2f7e21);}['strTime'](){return a0_0x3ea3eb(this['hours']())+':'+a0_0x3ea3eb(this['min']())+':'+a0_0x3ea3eb(this['sec']());}['strTimeLocale'](_0x120c78){return this['val']['toLocaleTimeString'](this['code'],_0x120c78);}['strHHmm'](){return a0_0x3ea3eb(this['hours']())+':'+a0_0x3ea3eb(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x21acb0){return this['val']['toLocaleString'](this['code'],_0x21acb0);}['strYears'](){return this['val']['getFullYear']()['toString']();}['strMounth'](){return a0_0x3ea3eb(this['month'](),0x2);}['strDay'](){return a0_0x3ea3eb(this['day'](),0x2);}['strHour'](){return a0_0x3ea3eb(this['hours'](),0x2);}['strMin'](){return a0_0x3ea3eb(this['min'](),0x2);}['strSec'](){return a0_0x3ea3eb(this['sec'](),0x2);}['strMsec'](){return a0_0x3ea3eb(this['msec'](),0x2);}['addDay'](_0x4df5fc){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x4df5fc*0x18)),this;}['addHours'](_0x2b014f){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x2b014f)),this;}['addMins'](_0x468071){return this['val']=new Date(this['val']['setMinutes'](this['val']['getMinutes']()+_0x468071)),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'](_0x5e58e9){return a0_0x3a0037(()=>{return this['cpy']()['toTime']()===a0_0x133b33(_0x5e58e9);});}['gt'](_0xf2d39f){return a0_0x3a0037(()=>{return this['cpy']()['toTime']()>a0_0x133b33(_0xf2d39f);});}['gte'](_0x2f6111){return a0_0x3a0037(()=>{return this['cpy']()['toTime']()>=a0_0x133b33(_0x2f6111);});}['lt'](_0x340f93){return a0_0x3a0037(()=>{return this['cpy']()['toTime']()<a0_0x133b33(_0x340f93);});}['lte'](_0x43a62a){return a0_0x3a0037(()=>{return this['cpy']()['toTime']()<=a0_0x133b33(_0x43a62a);});}['btw'](_0x5d292b,_0x2525ae){return a0_0x3a0037(()=>{const _0x2ac488=a0_0x133b33(_0x5d292b),_0x3bbceb=a0_0x133b33(_0x2525ae),_0x20b29e=this['cpy']()['toTime']();return _0x2ac488<_0x20b29e&&_0x20b29e<_0x3bbceb;});}['btweq'](_0x13cc51,_0xbfb0ad){return a0_0x3a0037(()=>{const _0x43935c=a0_0x133b33(_0x13cc51),_0x5c13c6=a0_0x133b33(_0xbfb0ad),_0x2c0635=this['cpy']()['toTime']();return _0x43935c<=_0x2c0635&&_0x2c0635<=_0x5c13c6;});}['btwEqStart'](_0x64dc17,_0x10483e){return a0_0x3a0037(()=>{const _0x595e17=a0_0x133b33(_0x64dc17),_0x322f25=a0_0x133b33(_0x10483e),_0x2e94ed=this['cpy']()['toTime']();return _0x595e17<=_0x2e94ed&&_0x2e94ed<_0x322f25;});}['btwEqEnd'](_0x5cfb27,_0xd7955c){return a0_0x3a0037(()=>{const _0x52f70d=a0_0x133b33(_0x5cfb27),_0x74f08d=a0_0x133b33(_0xd7955c),_0x3c2b7d=this['cpy']()['toTime']();return _0x52f70d<_0x3c2b7d&&_0x3c2b7d<=_0x74f08d;});}static['diffDays'](_0x3eb4b8,_0x3759da,_0x3a65e2){return a0_0x3a0037(()=>{const _0x23777a=a0_0x133b33(_0x3eb4b8),_0x4ea5c7=a0_0x133b33(_0x3759da);return _0x3a65e2?Math['abs'](_0x23777a-_0x4ea5c7)/0x36ee80/0x18:(_0x23777a-_0x4ea5c7)/0x36ee80/0x18;});}static['diffHours'](_0x144b35,_0x1f0ab5,_0x8ea448){return a0_0x3a0037(()=>{const _0x2d0eb1=a0_0x133b33(_0x144b35),_0x47ba23=a0_0x133b33(_0x1f0ab5);return _0x8ea448?Math['abs'](_0x2d0eb1-_0x47ba23)/0x36ee80:(_0x2d0eb1-_0x47ba23)/0x36ee80;});}static['diffMins'](_0x3a2e7a,_0x585f0a,_0x2384c4){return a0_0x3a0037(()=>{const _0x1cdcf8=a0_0x133b33(_0x3a2e7a),_0x151dce=a0_0x133b33(_0x585f0a);return _0x2384c4?Math['abs'](_0x1cdcf8-_0x151dce)/0x3e8/0x3c:(_0x1cdcf8-_0x151dce)/0x3e8/0x3c;});}static['diffSecs'](_0x10530d,_0x3ba595,_0x389c52){return a0_0x3a0037(()=>{const _0x2ffe1b=a0_0x133b33(_0x10530d),_0x44f5a8=a0_0x133b33(_0x3ba595);return _0x389c52?Math['abs'](_0x2ffe1b-_0x44f5a8)/0x3e8:(_0x2ffe1b-_0x44f5a8)/0x3e8;});}static['s1'](_0x2f0fef,_0x539ecb,_0x3a8a35,_0x240e9e){return a0_0x3a0037(()=>a0_0x4f9b9f(_0x2f0fef,_0x539ecb,_0x3a8a35,_0x240e9e));}static['divideTime'](_0x26b490){return a0_0x3a0037(()=>a0_0x3b8e61(_0x26b490));}}exports['MDateUtil']=a0_0x40e32c;const a0_0x539bcf={};a0_0x539bcf['value']='mdateutil',a0_0x539bcf['writable']=![],a0_0x539bcf['enumerable']=!![],a0_0x539bcf['configurable']=![],Object['defineProperty'](a0_0x40e32c['prototype'],'idkey',a0_0x539bcf);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x27846d=this&&this['__createBinding']||(Object['create']?function(_0x3f290e,_0x26f7af,_0x44e813,_0x585b59){if(_0x585b59===undefined)_0x585b59=_0x44e813;var _0x131589=Object['getOwnPropertyDescriptor'](_0x26f7af,_0x44e813);if(!_0x131589||('get'in _0x131589?!_0x26f7af['__esModule']:_0x131589['writable']||_0x131589['configurable'])){var _0x5777ed={};_0x5777ed['enumerable']=!![],_0x5777ed['get']=function(){return _0x26f7af[_0x44e813];},_0x131589=_0x5777ed;}Object['defineProperty'](_0x3f290e,_0x585b59,_0x131589);}:function(_0x2cd485,_0x1da864,_0x15942a,_0x325d98){if(_0x325d98===undefined)_0x325d98=_0x15942a;_0x2cd485[_0x325d98]=_0x1da864[_0x15942a];}),a0_0x53be99=this&&this['__exportStar']||function(_0x6e6360,_0x36f4cd){for(var _0x401064 in _0x6e6360)if(_0x401064!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x36f4cd,_0x401064))a0_0x27846d(_0x36f4cd,_0x6e6360,_0x401064);},a0_0x5d52ba={};a0_0x5d52ba['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x5d52ba),a0_0x53be99(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0xc94789=this&&this['__createBinding']||(Object['create']?function(_0x5cfb6a,_0x1b1dcc,_0xf3e47a,_0x57023c){if(_0x57023c===undefined)_0x57023c=_0xf3e47a;var _0x50c48a=Object['getOwnPropertyDescriptor'](_0x1b1dcc,_0xf3e47a);if(!_0x50c48a||('get'in _0x50c48a?!_0x1b1dcc['__esModule']:_0x50c48a['writable']||_0x50c48a['configurable'])){var _0x1af30f={};_0x1af30f['enumerable']=!![],_0x1af30f['get']=function(){return _0x1b1dcc[_0xf3e47a];},_0x50c48a=_0x1af30f;}Object['defineProperty'](_0x5cfb6a,_0x57023c,_0x50c48a);}:function(_0x1e26e3,_0x1afb34,_0x28cd6f,_0x3c2b3f){if(_0x3c2b3f===undefined)_0x3c2b3f=_0x28cd6f;_0x1e26e3[_0x3c2b3f]=_0x1afb34[_0x28cd6f];}),a0_0x3cde82=this&&this['__exportStar']||function(_0x523ccf,_0x19493a){for(var _0x4cef0b in _0x523ccf)if(_0x4cef0b!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x19493a,_0x4cef0b))a0_0xc94789(_0x19493a,_0x523ccf,_0x4cef0b);},a0_0x532457={};a0_0x532457['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x532457),a0_0x3cde82(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.7.41",
3
+ "version": "1.7.47",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",