YiAi/YiAiQuickDeploy/dist/common/utils/utcformatTime.js
2024-02-06 13:43:30 +08:00

1 line
2.1 KiB
JavaScript

'use strict';const _0x464003=_0xd724;function _0xd724(_0x34f0b4,_0xe74f26){const _0x24e813=_0x24e8();return _0xd724=function(_0xd724cd,_0x1c2ed2){_0xd724cd=_0xd724cd-0x68;let _0xeef91e=_0x24e813[_0xd724cd];return _0xeef91e;},_0xd724(_0x34f0b4,_0xe74f26);}function _0x24e8(){const _0x4819ae=['getSeconds','YYYY/MM/DD\x20hh:mm:ss','587238ryTVFk','getHours','9aTHiSJ','273628hSTbDi','getDate','3745580qbDFXD','801190NiMmdw','__esModule','getMinutes','2709176sSpxAX','utcToShanghaiTime','slice','replace','350DGDGFR','130548QnBuES','1641810kLGBPs','5lPnhRc','defineProperty','getFullYear','getTime'];_0x24e8=function(){return _0x4819ae;};return _0x24e8();}(function(_0x310b18,_0x3401de){const _0x23a322=_0xd724,_0x1f3018=_0x310b18();while(!![]){try{const _0x1da390=parseInt(_0x23a322(0x73))/0x1+parseInt(_0x23a322(0x72))/0x2+-parseInt(_0x23a322(0x6d))/0x3+-parseInt(_0x23a322(0x70))/0x4*(-parseInt(_0x23a322(0x7d))/0x5)+-parseInt(_0x23a322(0x7b))/0x6*(parseInt(_0x23a322(0x7a))/0x7)+parseInt(_0x23a322(0x76))/0x8*(-parseInt(_0x23a322(0x6f))/0x9)+-parseInt(_0x23a322(0x7c))/0xa;if(_0x1da390===_0x3401de)break;else _0x1f3018['push'](_0x1f3018['shift']());}catch(_0x11616b){_0x1f3018['push'](_0x1f3018['shift']());}}}(_0x24e8,0xe9609));Object[_0x464003(0x68)](exports,_0x464003(0x74),{'value':!![]}),exports[_0x464003(0x77)]=void 0x0;function utcToShanghaiTime(_0x92e61a,_0x27c10a=_0x464003(0x6c)){const _0x5ebdd5=_0x464003,_0x532195=new Date(_0x92e61a),_0xac0d98=_0x532195[_0x5ebdd5(0x6a)]()+0x8*0x3c*0x3c*0x3e8,_0x531dbd=new Date(_0xac0d98);let _0x18711a=_0x27c10a[_0x5ebdd5(0x79)]('YYYY',_0x531dbd[_0x5ebdd5(0x69)]()['toString']());return _0x18711a=_0x18711a['replace']('MM',('0'+(_0x531dbd['getMonth']()+0x1))[_0x5ebdd5(0x78)](-0x2)),_0x18711a=_0x18711a[_0x5ebdd5(0x79)]('DD',('0'+_0x531dbd[_0x5ebdd5(0x71)]())[_0x5ebdd5(0x78)](-0x2)),_0x18711a=_0x18711a[_0x5ebdd5(0x79)]('hh',('0'+_0x531dbd[_0x5ebdd5(0x6e)]())[_0x5ebdd5(0x78)](-0x2)),_0x18711a=_0x18711a[_0x5ebdd5(0x79)]('mm',('0'+_0x531dbd[_0x5ebdd5(0x75)]())['slice'](-0x2)),_0x18711a=_0x18711a[_0x5ebdd5(0x79)]('ss',('0'+_0x531dbd[_0x5ebdd5(0x6b)]())[_0x5ebdd5(0x78)](-0x2)),_0x18711a;}exports['utcToShanghaiTime']=utcToShanghaiTime;