mat-date 1.7.41 → 1.7.45
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 +6 -0
- package/dist/DateUtil.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/DateUtil.d.ts
CHANGED
|
@@ -71,6 +71,12 @@ export declare class MDateUtil {
|
|
|
71
71
|
strHHmm(): string;
|
|
72
72
|
str(): string;
|
|
73
73
|
strLocal(options: IStrOptions): string;
|
|
74
|
+
strYears(): string;
|
|
75
|
+
strMounth(): string;
|
|
76
|
+
strDay(): string;
|
|
77
|
+
strHour(): string;
|
|
78
|
+
strMin(): string;
|
|
79
|
+
strSec(): string;
|
|
74
80
|
addDay(value: number): this;
|
|
75
81
|
addHours(value: number): this;
|
|
76
82
|
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_0x140b4={};a0_0x140b4['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x140b4),exports['MDateUtil']=void 0x0;const a0_0x1933e3=(_0x1254f8,_0x295f52=0x2)=>_0x1254f8['toString']()['padStart'](_0x295f52,'0');function a0_0xa61d2(_0x4de9f1,_0x5311a){try{return _0x4de9f1();}catch(_0x2b3309){if(_0x5311a)return _0x5311a;throw new Error('UNKNOWN');}}function a0_0x5cdec6(_0x3f7a0a){try{if(_0x3f7a0a instanceof Date)return _0x3f7a0a['getTime']();if(typeof _0x3f7a0a==='number')return _0x3f7a0a;if(typeof _0x3f7a0a==='string')return new Date(_0x3f7a0a)['getTime']();if(_0x3f7a0a instanceof a0_0x24ec01)return _0x3f7a0a['toTime']();if(_0x3f7a0a['idkey']==='mdateutil')return _0x3f7a0a['toTime']();return 0x0;}catch(_0x1fbe0c){throw new Error('ERROR');}}function a0_0x1a5df3(_0x2ad72d,_0x1d94bd,_0x4e917d,_0x20196a){const _0x17165=a0_0x5cdec6(_0x2ad72d),_0x3c97ed=a0_0x5cdec6(_0x1d94bd),_0x174407=a0_0x5cdec6(_0x4e917d),_0x93512d=a0_0x5cdec6(_0x20196a);return _0x174407<=_0x17165&&_0x93512d>=_0x17165&&_0x93512d<=_0x3c97ed||_0x174407>=_0x17165&&_0x174407<=_0x3c97ed&&_0x93512d>=_0x3c97ed||_0x174407>=_0x17165&&_0x174407<=_0x3c97ed&&_0x93512d<=_0x3c97ed||_0x174407<=_0x17165&&_0x93512d>=_0x3c97ed;}function a0_0x22b8e2(_0x277e59){let _0x452d15=null,_0x4ac787=null,_0x18579e=null,_0x4a7bc7=null;try{const _0x3f3efe=(_0x277e59||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x452d15=_0x3f3efe['length']>=0x1?Number(_0x3f3efe[0x0]):null,_0x4ac787=_0x3f3efe['length']>=0x2?Number(_0x3f3efe[0x1]):null,_0x18579e=_0x3f3efe['length']>=0x3?Number(_0x3f3efe[0x2]):null;}catch(_0x511206){}try{let _0x4a23d3=_0x277e59||'',_0x58a825=/\.\d{3}/g,_0xa26d0f=_0x4a23d3['match'](_0x58a825)[0x0]['split']('.')['filter'](_0x30f625=>Boolean(_0x30f625));_0x4a7bc7=_0xa26d0f['length']>=0x1?Number(_0xa26d0f[0x0]):null;}catch(_0x290ecd){}const _0x580ae4={};return _0x580ae4['h']=_0x452d15,_0x580ae4['m']=_0x4ac787,_0x580ae4['s']=_0x18579e,_0x580ae4['ms']=_0x4a7bc7,_0x580ae4;}class a0_0x24ec01{['val']=new Date();static ['glCode']=undefined;['code']=undefined;get['localCode'](){return this['code'];}static['new'](){return new a0_0x24ec01()['setCode'](a0_0x24ec01['glCode']);}static['setCode'](_0x1504f7){return a0_0x24ec01['glCode']=_0x1504f7,this;}static['seperator'](){return a0_0xa61d2(()=>new Date()['toLocaleDateString'](a0_0x24ec01['glCode'])['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0xa61d2(()=>a0_0x24ec01['new']()['setTime'](this['toTime']()));}['setCode'](_0x202955){return this['code']=_0x202955,this;}['seperator'](){return a0_0xa61d2(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['zone'](){return a0_0xa61d2(()=>{return Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x311ba2=this['code']){return a0_0xa61d2(()=>{return new Intl['Locale'](_0x311ba2)?.['timeZones']||[];},null);}['region'](_0x2c73a5=this['code']){return a0_0xa61d2(()=>{return new Intl['Locale'](_0x2c73a5)['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 _0xffe606=this['val']['getDay']();return _0xffe606?_0xffe606:0x7;}['dayOfWeekUtc'](){return this['val']['getDay']();}['setYear'](_0x59ee05){return this['val']['setFullYear'](_0x59ee05),this;}['setMonth'](_0x1a2e26){return this['val']['setMonth'](_0x1a2e26-0x1),this;}['setMonthUtc'](_0x3d68f9){return this['val']['setMonth'](_0x3d68f9),this;}['setDay'](_0x6b3197){return this['val']['setDate'](_0x6b3197),this;}['setHour'](_0x402348){return this['val']['setHours'](_0x402348),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'](_0x27e791){return this['val']['setMinutes'](_0x27e791),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x5734d3){return this['val']['setSeconds'](_0x5734d3),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x3d3436){return this['val']['setMilliseconds'](_0x3d3436),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x164c6c){return this['val']=new Date(_0x164c6c),this;}['setTime'](_0x1394a6){return this['val']=new Date(_0x1394a6),this;}['setDate'](_0x6c7264){return this['val']=new Date(_0x6c7264),this;}['setDateInputValue'](_0x338a9){return this['val']=new Date(_0x338a9?.['replace']('T','\x20')),this;}['setVal'](_0x42cce2){return a0_0xa61d2(()=>{return a0_0x24ec01['new']()['setTime'](a0_0x5cdec6(_0x42cce2));});}['toIsoDate'](){return this['val']['toISOString']();}['toTime'](){return this['val']['getTime']();}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x1933e3(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x1933e3(this['month']())+'-'+a0_0x1933e3(this['day']());}['toTimeInput'](_0x3ac285=!![]){const _0x350054=[];return _0x350054['push'](a0_0x1933e3(this['hours']())),_0x350054['push'](a0_0x1933e3(this['min']())),_0x3ac285&&_0x350054['push'](a0_0x1933e3(this['sec']())),_0x350054['join'](':');}['toDateTimeInput'](_0xde1c93=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0xde1c93);}['strDate'](){const _0x21404b={};return _0x21404b['month']='2-digit',_0x21404b['day']='2-digit',_0x21404b['year']='numeric',this['val']['toLocaleDateString'](this['code'],_0x21404b);}['strDateLocal'](_0x45efee){return this['val']['toLocaleDateString'](this['code'],_0x45efee);}['strTime'](){return a0_0x1933e3(this['hours']())+':'+a0_0x1933e3(this['min']())+':'+a0_0x1933e3(this['sec']());}['strTimeLocale'](_0x2a7d52){return this['val']['toLocaleTimeString'](this['code'],_0x2a7d52);}['strHHmm'](){return a0_0x1933e3(this['hours']())+':'+a0_0x1933e3(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0xa49716){return this['val']['toLocaleString'](this['code'],_0xa49716);}['strYears'](){return this['val']['getFullYear']()['toString']();}['strMounth'](){return a0_0x1933e3(this['month'](),0x2);}['strDay'](){return a0_0x1933e3(this['day'](),0x2);}['strHour'](){return a0_0x1933e3(this['hours'](),0x2);}['strMin'](){return a0_0x1933e3(this['min'](),0x2);}['strSec'](){return a0_0x1933e3(this['sec'](),0x2);}['addDay'](_0x396adc){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x396adc*0x18)),this;}['addHours'](_0x2124bd){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x2124bd)),this;}['addMins'](_0x3bf780){return this['val']=new Date(this['val']['setMinutes'](this['val']['getMinutes']()+_0x3bf780)),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'](_0x2f7c4e){return a0_0xa61d2(()=>{return this['cpy']()['toTime']()===a0_0x5cdec6(_0x2f7c4e);});}['gt'](_0x478a96){return a0_0xa61d2(()=>{return this['cpy']()['toTime']()>a0_0x5cdec6(_0x478a96);});}['gte'](_0x3581b3){return a0_0xa61d2(()=>{return this['cpy']()['toTime']()>=a0_0x5cdec6(_0x3581b3);});}['lt'](_0xc20e2){return a0_0xa61d2(()=>{return this['cpy']()['toTime']()<a0_0x5cdec6(_0xc20e2);});}['lte'](_0x43892f){return a0_0xa61d2(()=>{return this['cpy']()['toTime']()<=a0_0x5cdec6(_0x43892f);});}['btw'](_0x94b17a,_0x34f88e){return a0_0xa61d2(()=>{const _0x108054=a0_0x5cdec6(_0x94b17a),_0xdb8797=a0_0x5cdec6(_0x34f88e),_0x394e8f=this['cpy']()['toTime']();return _0x108054<_0x394e8f&&_0x394e8f<_0xdb8797;});}['btweq'](_0x14c6c8,_0x575b74){return a0_0xa61d2(()=>{const _0xf40fc8=a0_0x5cdec6(_0x14c6c8),_0x204267=a0_0x5cdec6(_0x575b74),_0xecc07f=this['cpy']()['toTime']();return _0xf40fc8<=_0xecc07f&&_0xecc07f<=_0x204267;});}['btwEqStart'](_0x8a0900,_0x29c9b7){return a0_0xa61d2(()=>{const _0x4989c3=a0_0x5cdec6(_0x8a0900),_0x446919=a0_0x5cdec6(_0x29c9b7),_0x4a47e0=this['cpy']()['toTime']();return _0x4989c3<=_0x4a47e0&&_0x4a47e0<_0x446919;});}['btwEqEnd'](_0x5bcd25,_0x397b33){return a0_0xa61d2(()=>{const _0x2f5a99=a0_0x5cdec6(_0x5bcd25),_0x1270ab=a0_0x5cdec6(_0x397b33),_0x95c48f=this['cpy']()['toTime']();return _0x2f5a99<_0x95c48f&&_0x95c48f<=_0x1270ab;});}static['diffDays'](_0x2e1d21,_0x810fdd,_0x22a225){return a0_0xa61d2(()=>{const _0x394447=a0_0x5cdec6(_0x2e1d21),_0x2e5bb1=a0_0x5cdec6(_0x810fdd);return _0x22a225?Math['abs'](_0x394447-_0x2e5bb1)/0x36ee80/0x18:(_0x394447-_0x2e5bb1)/0x36ee80/0x18;});}static['diffHours'](_0x4154c9,_0x26980c,_0xae28f0){return a0_0xa61d2(()=>{const _0x67e1c=a0_0x5cdec6(_0x4154c9),_0x4de9ad=a0_0x5cdec6(_0x26980c);return _0xae28f0?Math['abs'](_0x67e1c-_0x4de9ad)/0x36ee80:(_0x67e1c-_0x4de9ad)/0x36ee80;});}static['diffMins'](_0x33d81c,_0x216103,_0x5c3504){return a0_0xa61d2(()=>{const _0xc70223=a0_0x5cdec6(_0x33d81c),_0x4e4a81=a0_0x5cdec6(_0x216103);return _0x5c3504?Math['abs'](_0xc70223-_0x4e4a81)/0x3e8/0x3c:(_0xc70223-_0x4e4a81)/0x3e8/0x3c;});}static['diffSecs'](_0x24a27f,_0x41f9ed,_0x3cc440){return a0_0xa61d2(()=>{const _0x25d1af=a0_0x5cdec6(_0x24a27f),_0x5004d6=a0_0x5cdec6(_0x41f9ed);return _0x3cc440?Math['abs'](_0x25d1af-_0x5004d6)/0x3e8:(_0x25d1af-_0x5004d6)/0x3e8;});}static['s1'](_0x5a3f9f,_0x157705,_0x5ebfa7,_0x3a8234){return a0_0xa61d2(()=>a0_0x1a5df3(_0x5a3f9f,_0x157705,_0x5ebfa7,_0x3a8234));}static['divideTime'](_0xc0a76){return a0_0xa61d2(()=>a0_0x22b8e2(_0xc0a76));}}exports['MDateUtil']=a0_0x24ec01;const a0_0x22209f={};a0_0x22209f['value']='mdateutil',a0_0x22209f['writable']=![],a0_0x22209f['enumerable']=!![],a0_0x22209f['configurable']=![],Object['defineProperty'](a0_0x24ec01['prototype'],'idkey',a0_0x22209f);
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x392ad6=this&&this['__createBinding']||(Object['create']?function(_0x4e115f,_0x1eda43,_0x1b4790,_0x1d5a45){if(_0x1d5a45===undefined)_0x1d5a45=_0x1b4790;var _0x14bc5e=Object['getOwnPropertyDescriptor'](_0x1eda43,_0x1b4790);if(!_0x14bc5e||('get'in _0x14bc5e?!_0x1eda43['__esModule']:_0x14bc5e['writable']||_0x14bc5e['configurable'])){var _0x123e9f={};_0x123e9f['enumerable']=!![],_0x123e9f['get']=function(){return _0x1eda43[_0x1b4790];},_0x14bc5e=_0x123e9f;}Object['defineProperty'](_0x4e115f,_0x1d5a45,_0x14bc5e);}:function(_0x27f072,_0x3c2b3e,_0x1caabb,_0x40b305){if(_0x40b305===undefined)_0x40b305=_0x1caabb;_0x27f072[_0x40b305]=_0x3c2b3e[_0x1caabb];}),a0_0x516b3d=this&&this['__exportStar']||function(_0x30b964,_0x441e2c){for(var _0x3a697e in _0x30b964)if(_0x3a697e!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x441e2c,_0x3a697e))a0_0x392ad6(_0x441e2c,_0x30b964,_0x3a697e);},a0_0x3cbc4e={};a0_0x3cbc4e['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3cbc4e),a0_0x516b3d(require('./DateUtil'),exports);
|