mat-date 1.7.69 → 1.7.71
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.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/DateUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x407c83={};a0_0x407c83['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x407c83),exports['MDateUtil']=void 0x0;const a0_0x69cd62=require('@js-temporal/polyfill'),a0_0x2542f4=(_0x13cd39,_0x268d22=0x2)=>_0x13cd39['toString']()['padStart'](_0x268d22,'0');function a0_0x372f6c(_0x37c38e,_0x3cb697){try{return _0x37c38e();}catch(_0x750153){if(_0x3cb697)return _0x3cb697;throw new Error('UNKNOWN');}}function a0_0x226aea(_0x4a955c,_0x421a9e){try{if(_0x4a955c instanceof Date)return a0_0x69cd62['Temporal']['Instant']['fromEpochMilliseconds'](_0x4a955c['getTime']())['toZonedDateTimeISO'](_0x421a9e)['epochMilliseconds'];if(typeof _0x4a955c==='number')return _0x4a955c;if(typeof _0x4a955c==='string')return a0_0x69cd62['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x4a955c)['getTime']())['toZonedDateTimeISO'](_0x421a9e)['epochMilliseconds'];if(_0x4a955c instanceof a0_0x10db09)return _0x4a955c['toTime']();if(_0x4a955c['idkey']==='mdateutil')return _0x4a955c['toTime']();return 0x0;}catch(_0x6e2ee2){throw new Error('ERROR');}}function a0_0x15480f(_0x21bbc6){function _0x3b9dc0(_0x4ffea0){const _0x4882a8={};return _0x4882a8['weekday']=_0x4ffea0,a0_0x372f6c(()=>new Intl['DateTimeFormat'](_0x21bbc6['localCode'],_0x4882a8)['format'](a0_0x226aea(_0x21bbc6,_0x21bbc6['zone'])),'');}function _0x22dc9a(){return _0x3b9dc0('long');}function _0x364995(){return _0x3b9dc0('short');}function _0x4fd53b(){return _0x3b9dc0('narrow');}const _0x5db86c={};return _0x5db86c['ln']=_0x22dc9a,_0x5db86c['sh']=_0x364995,_0x5db86c['nr']=_0x4fd53b,_0x5db86c;}function a0_0x1de3eb(_0x1b0b6b){let _0x586b20=undefined,_0x38759c=undefined,_0x19e31c=undefined,_0x13dc1e=undefined;try{const _0x3cf48b=(_0x1b0b6b||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x586b20=_0x3cf48b['length']>=0x1?Number(_0x3cf48b[0x0]):undefined,_0x38759c=_0x3cf48b['length']>=0x2?Number(_0x3cf48b[0x1]):undefined,_0x19e31c=_0x3cf48b['length']>=0x3?Number(_0x3cf48b[0x2]):undefined;}catch(_0x43961a){}try{let _0x2a1ae9=_0x1b0b6b||'',_0x44f713=/\.\d{3}/g,_0x425a14=_0x2a1ae9['match'](_0x44f713)[0x0]['split']('.')['filter'](_0x868624=>Boolean(_0x868624));_0x13dc1e=_0x425a14['length']>=0x1?Number(_0x425a14[0x0]):undefined;}catch(_0xcd5e5d){}const _0x3e9bfc={};return _0x3e9bfc['h']=_0x586b20,_0x3e9bfc['m']=_0x38759c,_0x3e9bfc['s']=_0x19e31c,_0x3e9bfc['ms']=_0x13dc1e,_0x3e9bfc;}let a0_0x54fe91=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x352b20=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x10db09{['val'];['code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x15480f(this);get['localCode'](){return this['code'];}get['zone'](){return this['_zone'];}['init'](){return this['val']=a0_0x69cd62['Temporal']['Instant']['fromEpochMilliseconds'](new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x15480f(this),this;}['toString'](){return'TEST';}static['new'](){return new a0_0x10db09()['setCode'](a0_0x54fe91)['setZone'](a0_0x352b20)['init']();}static['setCode'](_0x2f5fd7){return a0_0x54fe91=_0x2f5fd7,this;}static['setZone'](_0x4e04e4){return a0_0x352b20=_0x4e04e4,this;}static['seperator'](){return a0_0x372f6c(()=>new Date()['toLocaleDateString'](a0_0x54fe91)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x372f6c(()=>a0_0x10db09['new']()['setTime'](this['toTime']()));}['setCode'](_0x18cca0){return this['code']=_0x18cca0,this;}['setZone'](_0x186677){return this['_zone']=_0x186677,this;}['seperator'](){return a0_0x372f6c(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x372f6c(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x2aca47=this['code']){return a0_0x372f6c(()=>{return new Intl['Locale'](_0x2aca47)?.['timeZones']||[];},null);}['region'](_0x1c60fa=this['code']){return a0_0x372f6c(()=>{return new Intl['Locale'](_0x1c60fa)['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 _0x342da4=this['val']['dayOfWeek'];return _0x342da4?_0x342da4:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x36ab31){const _0x17c8d5={};return _0x17c8d5['year']=_0x36ab31,this['val']['with'](_0x17c8d5),this;}['setMonth'](_0x99a270){const _0xcd4855={};return _0xcd4855['month']=_0x99a270,this['val']['with'](_0xcd4855),this;}['setMonthUtc'](_0xb3018){const _0x47ea20={};return _0x47ea20['month']=_0xb3018+0x1,this['val']['with'](_0x47ea20),this;}['setDay'](_0x1df945){const _0x17322e={};return _0x17322e['day']=_0x1df945,this['val']['with'](_0x17322e),this;}['setHour'](_0x5634d6){const _0x4f8f25={};return _0x4f8f25['hour']=_0x5634d6,this['val']['with'](_0x4f8f25),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'](_0x3c142d){const _0x404f85={};return _0x404f85['minute']=_0x3c142d,this['val']['with'](_0x404f85),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x1a9bbd){const _0x19640f={};return _0x19640f['second']=_0x1a9bbd,this['val']['with'](_0x19640f),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x4b419b){const _0x500b1a={};return _0x500b1a['millisecond']=_0x4b419b,this['val']['with'](_0x500b1a),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0xe6c3b5){return this['val']=a0_0x69cd62['Temporal']['Instant']['from'](_0xe6c3b5)['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x1d02fe){return this['val']=a0_0x69cd62['Temporal']['Instant']['fromEpochMilliseconds'](_0x1d02fe)['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x406803){return this['setIsoDate'](_0x406803?.['toISOString']()),this;}['setDateInputValue'](_0x275729){return this['val']=a0_0x69cd62['Temporal']['Instant']['from'](new Date(_0x275729?.['replace']('T','\x20'))['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setVal'](_0x468c67){return a0_0x372f6c(()=>{return a0_0x10db09['new']()['setTime'](a0_0x226aea(_0x468c67,this['zone']));});}['toIsoDate'](){return this['val']['toString']()['substring'](0x0,0x17)+'Z';}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x2542f4(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x2542f4(this['month']())+'-'+a0_0x2542f4(this['day']());}['toTimeInput'](_0x45bdc4=!![]){const _0xd02bb7=[];return _0xd02bb7['push'](a0_0x2542f4(this['hours']())),_0xd02bb7['push'](a0_0x2542f4(this['min']())),_0x45bdc4&&_0xd02bb7['push'](a0_0x2542f4(this['sec']())),_0xd02bb7['join'](':');}['toDateTimeInput'](_0x16e3b4=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x16e3b4);}['strDate'](){const _0x46c74f={};return _0x46c74f['month']='2-digit',_0x46c74f['day']='2-digit',_0x46c74f['year']='numeric',this['val']['toLocaleString'](this['code'],_0x46c74f);}['strTime'](){return a0_0x2542f4(this['hours']())+':'+a0_0x2542f4(this['min']())+':'+a0_0x2542f4(this['sec']());}['strHHmm'](){return a0_0x2542f4(this['hours']())+':'+a0_0x2542f4(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x285350){return this['val']['toLocaleString'](this['code'],_0x285350);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x2542f4(this['month'](),0x2);}['strDay'](){return a0_0x2542f4(this['day'](),0x2);}['strHour'](){return a0_0x2542f4(this['hours'](),0x2);}['strMin'](){return a0_0x2542f4(this['min'](),0x2);}['strSec'](){return a0_0x2542f4(this['sec'](),0x2);}['strMsec'](){return a0_0x2542f4(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x5f4c30){const _0x21125f={};return _0x21125f['days']=_0x5f4c30,this['val']['add'](_0x21125f),this;}['addHours'](_0x254192){const _0x3d04c7={};return _0x3d04c7['hours']=_0x254192,this['val']['add'](_0x3d04c7),this;}['addMins'](_0x1b28bb){const _0x2e922b={};return _0x2e922b['minutes']=_0x1b28bb,this['val']['add'](_0x2e922b),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'](_0x16728e){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()===a0_0x226aea(_0x16728e,this['zone']);});}['gt'](_0x8a670f){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()>a0_0x226aea(_0x8a670f,this['zone']);});}['gte'](_0x1f979d){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()>=a0_0x226aea(_0x1f979d,this['zone']);});}['lt'](_0x344c6a){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()<a0_0x226aea(_0x344c6a,this['zone']);});}['lte'](_0x4859ed){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()<=a0_0x226aea(_0x4859ed,this['zone']);});}['btw'](_0x1fb715,_0x44f16f){return a0_0x372f6c(()=>{const _0x1f44bf=a0_0x226aea(_0x1fb715,this['zone']),_0x1a17d8=a0_0x226aea(_0x44f16f,this['zone']),_0x3cc8e0=this['cpy']()['toTime']();return _0x1f44bf<_0x3cc8e0&&_0x3cc8e0<_0x1a17d8;});}['btweq'](_0x5b4e3e,_0x4b0f07){return a0_0x372f6c(()=>{const _0x4e2899=a0_0x226aea(_0x5b4e3e,this['zone']),_0x382c41=a0_0x226aea(_0x4b0f07,this['zone']),_0x3607fc=this['cpy']()['toTime']();return _0x4e2899<=_0x3607fc&&_0x3607fc<=_0x382c41;});}['btwEqStart'](_0xe49e3f,_0x2baf55){return a0_0x372f6c(()=>{const _0x4822d4=a0_0x226aea(_0xe49e3f,this['zone']),_0x3e8379=a0_0x226aea(_0x2baf55,this['zone']),_0x4ba888=this['cpy']()['toTime']();return _0x4822d4<=_0x4ba888&&_0x4ba888<_0x3e8379;});}['btwEqEnd'](_0x2b2535,_0x1364b6){return a0_0x372f6c(()=>{const _0x57879b=a0_0x226aea(_0x2b2535,this['zone']),_0x1ccc78=a0_0x226aea(_0x1364b6,this['zone']),_0x3d5697=this['cpy']()['toTime']();return _0x57879b<_0x3d5697&&_0x3d5697<=_0x1ccc78;});}static['diffDays'](_0x560c8e,_0x1da3e1,_0x8d13b9){return a0_0x372f6c(()=>{const _0x15397f=a0_0x226aea(_0x560c8e,a0_0x352b20),_0x165e87=a0_0x226aea(_0x1da3e1,a0_0x352b20);return _0x8d13b9?Math['abs'](_0x15397f-_0x165e87)/0x36ee80/0x18:(_0x15397f-_0x165e87)/0x36ee80/0x18;});}static['diffHours'](_0x41028d,_0x58c30c,_0x357a0b){return a0_0x372f6c(()=>{const _0x4bb9ae=a0_0x226aea(_0x41028d,a0_0x352b20),_0x5bab15=a0_0x226aea(_0x58c30c,a0_0x352b20);return _0x357a0b?Math['abs'](_0x4bb9ae-_0x5bab15)/0x36ee80:(_0x4bb9ae-_0x5bab15)/0x36ee80;});}static['diffMins'](_0x3c4f64,_0x1e5bc2,_0xb5ed2b){return a0_0x372f6c(()=>{const _0x133d65=a0_0x226aea(_0x3c4f64,a0_0x352b20),_0x25474d=a0_0x226aea(_0x1e5bc2,a0_0x352b20);return _0xb5ed2b?Math['abs'](_0x133d65-_0x25474d)/0x3e8/0x3c:(_0x133d65-_0x25474d)/0x3e8/0x3c;});}static['diffSecs'](_0x36e712,_0xaeec21,_0x29a0ee){return a0_0x372f6c(()=>{const _0x5127b3=a0_0x226aea(_0x36e712,a0_0x352b20),_0x1c57cb=a0_0x226aea(_0xaeec21,a0_0x352b20);return _0x29a0ee?Math['abs'](_0x5127b3-_0x1c57cb)/0x3e8:(_0x5127b3-_0x1c57cb)/0x3e8;});}static['divideTime'](_0x54fe08){return a0_0x372f6c(()=>a0_0x1de3eb(_0x54fe08));}}exports['MDateUtil']=a0_0x10db09;const a0_0x34bdd4={};a0_0x34bdd4['value']='mdateutil',a0_0x34bdd4['writable']=![],a0_0x34bdd4['enumerable']=!![],a0_0x34bdd4['configurable']=![],Object['defineProperty'](a0_0x10db09['prototype'],'idkey',a0_0x34bdd4);
|
|
1
|
+
'use strict';const a0_0x265767={};a0_0x265767['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x265767),exports['MDateUtil']=void 0x0;const a0_0x3fcabf=require('@js-temporal/polyfill'),a0_0x2ffd4a=(_0x153f73,_0x238f98=0x2)=>_0x153f73['toString']()['padStart'](_0x238f98,'0');function a0_0x253d72(_0x3fb45c,_0x761724){try{return _0x3fb45c();}catch(_0x38291c){if(_0x761724)return _0x761724;throw new Error('UNKNOWN');}}function a0_0x4dd02f(_0x111df4,_0xa5444){try{if(_0x111df4 instanceof Date)return a0_0x3fcabf['Temporal']['Instant']['fromEpochMilliseconds'](_0x111df4['getTime']())['toZonedDateTimeISO'](_0xa5444)['epochMilliseconds'];if(typeof _0x111df4==='number')return _0x111df4;if(typeof _0x111df4==='string')return a0_0x3fcabf['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x111df4)['getTime']())['toZonedDateTimeISO'](_0xa5444)['epochMilliseconds'];if(_0x111df4 instanceof a0_0x450e48)return _0x111df4['toTime']();if(_0x111df4['idkey']==='mdateutil')return _0x111df4['toTime']();return 0x0;}catch(_0x3707e3){throw new Error('ERROR');}}function a0_0x4ac2fc(_0x24960e){function _0x34079a(_0x25816c){const _0x3dee9f={};return _0x3dee9f['weekday']=_0x25816c,a0_0x253d72(()=>new Intl['DateTimeFormat'](_0x24960e['localCode'],_0x3dee9f)['format'](a0_0x4dd02f(_0x24960e,_0x24960e['zone'])),'');}function _0xbf52dc(){return _0x34079a('long');}function _0x5558c5(){return _0x34079a('short');}function _0x5cc68f(){return _0x34079a('narrow');}const _0x518a3c={};return _0x518a3c['ln']=_0xbf52dc,_0x518a3c['sh']=_0x5558c5,_0x518a3c['nr']=_0x5cc68f,_0x518a3c;}function a0_0x7107f0(_0x5ae007){let _0x1a3136=undefined,_0x411e4a=undefined,_0x537109=undefined,_0x2c0181=undefined;try{const _0x2b387a=(_0x5ae007||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x1a3136=_0x2b387a['length']>=0x1?Number(_0x2b387a[0x0]):undefined,_0x411e4a=_0x2b387a['length']>=0x2?Number(_0x2b387a[0x1]):undefined,_0x537109=_0x2b387a['length']>=0x3?Number(_0x2b387a[0x2]):undefined;}catch(_0x6f7957){}try{let _0x543fbe=_0x5ae007||'',_0x3d2ae1=/\.\d{3}/g,_0x410122=_0x543fbe['match'](_0x3d2ae1)[0x0]['split']('.')['filter'](_0x5edf20=>Boolean(_0x5edf20));_0x2c0181=_0x410122['length']>=0x1?Number(_0x410122[0x0]):undefined;}catch(_0x149a6b){}const _0x37d4aa={};return _0x37d4aa['h']=_0x1a3136,_0x37d4aa['m']=_0x411e4a,_0x37d4aa['s']=_0x537109,_0x37d4aa['ms']=_0x2c0181,_0x37d4aa;}let a0_0x5b1847=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x478f0d=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x450e48{['val'];['code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x4ac2fc(this);get['localCode'](){return this['code'];}get['zone'](){return this['_zone'];}['init'](){return this['val']=a0_0x3fcabf['Temporal']['Instant']['fromEpochMilliseconds'](new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x4ac2fc(this),this;}['toString'](){return'TEST';}static['new'](){return new a0_0x450e48()['setCode'](a0_0x5b1847)['setZone'](a0_0x478f0d)['init']();}static['setCode'](_0x518e6b){return a0_0x5b1847=_0x518e6b,this;}static['setZone'](_0x31e453){return a0_0x478f0d=_0x31e453,this;}static['seperator'](){return a0_0x253d72(()=>new Date()['toLocaleDateString'](a0_0x5b1847)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x253d72(()=>a0_0x450e48['new']()['setTime'](this['toTime']()));}['setCode'](_0x1d363a){return this['code']=_0x1d363a,this;}['setZone'](_0x43e2f0){return this['_zone']=_0x43e2f0,this;}['seperator'](){return a0_0x253d72(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x253d72(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x13fc47=this['code']){return a0_0x253d72(()=>{return new Intl['Locale'](_0x13fc47)?.['timeZones']||[];},null);}['region'](_0x3621e9=this['code']){return a0_0x253d72(()=>{return new Intl['Locale'](_0x3621e9)['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 _0x32f2af=this['val']['dayOfWeek'];return _0x32f2af?_0x32f2af:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x77f5e8){const _0x3c314d={};return _0x3c314d['year']=_0x77f5e8,this['val']['with'](_0x3c314d),this;}['setMonth'](_0x50447a){const _0xf13e8a={};return _0xf13e8a['month']=_0x50447a,this['val']['with'](_0xf13e8a),this;}['setMonthUtc'](_0x642d50){const _0x1e85de={};return _0x1e85de['month']=_0x642d50+0x1,this['val']['with'](_0x1e85de),this;}['setDay'](_0x283c2f){const _0x3a0f99={};return _0x3a0f99['day']=_0x283c2f,this['val']['with'](_0x3a0f99),this;}['setHour'](_0x1838b4){const _0x3b18a5={};return _0x3b18a5['hour']=_0x1838b4,this['val']['with'](_0x3b18a5),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'](_0x3d329e){const _0x5c6338={};return _0x5c6338['minute']=_0x3d329e,this['val']['with'](_0x5c6338),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x27085f){const _0x46c91d={};return _0x46c91d['second']=_0x27085f,this['val']['with'](_0x46c91d),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x36a141){const _0x4fc003={};return _0x4fc003['millisecond']=_0x36a141,this['val']['with'](_0x4fc003),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x4cc710){return this['val']=a0_0x3fcabf['Temporal']['Instant']['from'](_0x4cc710||new Date()['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x49d50c){return this['val']=a0_0x3fcabf['Temporal']['Instant']['fromEpochMilliseconds'](_0x49d50c||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x1af7e4){return this['setIsoDate'](_0x1af7e4?.['toISOString']()),this;}['setDateInputValue'](_0x489b94){return this['val']=a0_0x3fcabf['Temporal']['Instant']['from'](new Date(_0x489b94?.['replace']('T','\x20'))['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setVal'](_0x276836){return a0_0x253d72(()=>{return a0_0x450e48['new']()['setTime'](a0_0x4dd02f(_0x276836,this['zone']));});}['toIsoDate'](){return this['val']['toString']()['substring'](0x0,0x17)+'Z';}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x2ffd4a(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x2ffd4a(this['month']())+'-'+a0_0x2ffd4a(this['day']());}['toTimeInput'](_0x174e24=!![]){const _0xdf4a66=[];return _0xdf4a66['push'](a0_0x2ffd4a(this['hours']())),_0xdf4a66['push'](a0_0x2ffd4a(this['min']())),_0x174e24&&_0xdf4a66['push'](a0_0x2ffd4a(this['sec']())),_0xdf4a66['join'](':');}['toDateTimeInput'](_0x2e4903=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x2e4903);}['strDate'](){const _0x509cdc={};return _0x509cdc['month']='2-digit',_0x509cdc['day']='2-digit',_0x509cdc['year']='numeric',this['val']['toLocaleString'](this['code'],_0x509cdc);}['strTime'](){return a0_0x2ffd4a(this['hours']())+':'+a0_0x2ffd4a(this['min']())+':'+a0_0x2ffd4a(this['sec']());}['strHHmm'](){return a0_0x2ffd4a(this['hours']())+':'+a0_0x2ffd4a(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x1b9069){return this['val']['toLocaleString'](this['code'],_0x1b9069);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x2ffd4a(this['month'](),0x2);}['strDay'](){return a0_0x2ffd4a(this['day'](),0x2);}['strHour'](){return a0_0x2ffd4a(this['hours'](),0x2);}['strMin'](){return a0_0x2ffd4a(this['min'](),0x2);}['strSec'](){return a0_0x2ffd4a(this['sec'](),0x2);}['strMsec'](){return a0_0x2ffd4a(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x5ed9aa){const _0x349dfd={};return _0x349dfd['days']=_0x5ed9aa,this['val']['add'](_0x349dfd),this;}['addHours'](_0x23487d){const _0x548a54={};return _0x548a54['hours']=_0x23487d,this['val']['add'](_0x548a54),this;}['addMins'](_0x33c092){const _0x4b81b4={};return _0x4b81b4['minutes']=_0x33c092,this['val']['add'](_0x4b81b4),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'](_0x32f1f2){return a0_0x253d72(()=>{return this['cpy']()['toTime']()===a0_0x4dd02f(_0x32f1f2,this['zone']);});}['gt'](_0x59d79d){return a0_0x253d72(()=>{return this['cpy']()['toTime']()>a0_0x4dd02f(_0x59d79d,this['zone']);});}['gte'](_0xf7da0){return a0_0x253d72(()=>{return this['cpy']()['toTime']()>=a0_0x4dd02f(_0xf7da0,this['zone']);});}['lt'](_0x38a125){return a0_0x253d72(()=>{return this['cpy']()['toTime']()<a0_0x4dd02f(_0x38a125,this['zone']);});}['lte'](_0x13b6a4){return a0_0x253d72(()=>{return this['cpy']()['toTime']()<=a0_0x4dd02f(_0x13b6a4,this['zone']);});}['btw'](_0x28340c,_0x22aceb){return a0_0x253d72(()=>{const _0x1014a1=a0_0x4dd02f(_0x28340c,this['zone']),_0x3bc2fa=a0_0x4dd02f(_0x22aceb,this['zone']),_0x225361=this['cpy']()['toTime']();return _0x1014a1<_0x225361&&_0x225361<_0x3bc2fa;});}['btweq'](_0x37c02f,_0x50c9ac){return a0_0x253d72(()=>{const _0x1c5edd=a0_0x4dd02f(_0x37c02f,this['zone']),_0x3b4208=a0_0x4dd02f(_0x50c9ac,this['zone']),_0x59385f=this['cpy']()['toTime']();return _0x1c5edd<=_0x59385f&&_0x59385f<=_0x3b4208;});}['btwEqStart'](_0x1e458f,_0x446af5){return a0_0x253d72(()=>{const _0x2eefb7=a0_0x4dd02f(_0x1e458f,this['zone']),_0xdbfc19=a0_0x4dd02f(_0x446af5,this['zone']),_0x22aa9c=this['cpy']()['toTime']();return _0x2eefb7<=_0x22aa9c&&_0x22aa9c<_0xdbfc19;});}['btwEqEnd'](_0x15e7d8,_0x43a006){return a0_0x253d72(()=>{const _0x3d01cc=a0_0x4dd02f(_0x15e7d8,this['zone']),_0xe9aa61=a0_0x4dd02f(_0x43a006,this['zone']),_0x4d5ab5=this['cpy']()['toTime']();return _0x3d01cc<_0x4d5ab5&&_0x4d5ab5<=_0xe9aa61;});}static['diffDays'](_0x5407ec,_0xb3286e,_0x255592){return a0_0x253d72(()=>{const _0x28ddcf=a0_0x4dd02f(_0x5407ec,a0_0x478f0d),_0x4603f9=a0_0x4dd02f(_0xb3286e,a0_0x478f0d);return _0x255592?Math['abs'](_0x28ddcf-_0x4603f9)/0x36ee80/0x18:(_0x28ddcf-_0x4603f9)/0x36ee80/0x18;});}static['diffHours'](_0x56f3d7,_0x175a69,_0x3578aa){return a0_0x253d72(()=>{const _0x223bc6=a0_0x4dd02f(_0x56f3d7,a0_0x478f0d),_0x2506fd=a0_0x4dd02f(_0x175a69,a0_0x478f0d);return _0x3578aa?Math['abs'](_0x223bc6-_0x2506fd)/0x36ee80:(_0x223bc6-_0x2506fd)/0x36ee80;});}static['diffMins'](_0xbcb633,_0x1c6f9d,_0x16d587){return a0_0x253d72(()=>{const _0x30427b=a0_0x4dd02f(_0xbcb633,a0_0x478f0d),_0x1dabd8=a0_0x4dd02f(_0x1c6f9d,a0_0x478f0d);return _0x16d587?Math['abs'](_0x30427b-_0x1dabd8)/0x3e8/0x3c:(_0x30427b-_0x1dabd8)/0x3e8/0x3c;});}static['diffSecs'](_0x19def0,_0x283e88,_0x8b7b3d){return a0_0x253d72(()=>{const _0x5cf3e4=a0_0x4dd02f(_0x19def0,a0_0x478f0d),_0x4bbc08=a0_0x4dd02f(_0x283e88,a0_0x478f0d);return _0x8b7b3d?Math['abs'](_0x5cf3e4-_0x4bbc08)/0x3e8:(_0x5cf3e4-_0x4bbc08)/0x3e8;});}static['divideTime'](_0x3ba3e2){return a0_0x253d72(()=>a0_0x7107f0(_0x3ba3e2));}}exports['MDateUtil']=a0_0x450e48;const a0_0x337812={};a0_0x337812['value']='mdateutil',a0_0x337812['writable']=![],a0_0x337812['enumerable']=!![],a0_0x337812['configurable']=![],Object['defineProperty'](a0_0x450e48['prototype'],'idkey',a0_0x337812);
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x1a8457=this&&this['__createBinding']||(Object['create']?function(_0x1c7342,_0x4fce51,_0x2da120,_0x1f3c2d){if(_0x1f3c2d===undefined)_0x1f3c2d=_0x2da120;var _0x224984=Object['getOwnPropertyDescriptor'](_0x4fce51,_0x2da120);if(!_0x224984||('get'in _0x224984?!_0x4fce51['__esModule']:_0x224984['writable']||_0x224984['configurable'])){var _0x277c19={};_0x277c19['enumerable']=!![],_0x277c19['get']=function(){return _0x4fce51[_0x2da120];},_0x224984=_0x277c19;}Object['defineProperty'](_0x1c7342,_0x1f3c2d,_0x224984);}:function(_0x55fb3a,_0x210284,_0x3915e6,_0x2e5f34){if(_0x2e5f34===undefined)_0x2e5f34=_0x3915e6;_0x55fb3a[_0x2e5f34]=_0x210284[_0x3915e6];}),a0_0x324fa8=this&&this['__exportStar']||function(_0xd231ef,_0x3b7cf7){for(var _0x1c2cbe in _0xd231ef)if(_0x1c2cbe!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x3b7cf7,_0x1c2cbe))a0_0x1a8457(_0x3b7cf7,_0xd231ef,_0x1c2cbe);},a0_0x3f2bbe={};a0_0x3f2bbe['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3f2bbe),a0_0x324fa8(require('./DateUtil'),exports);
|