YiAi/YiAiQuickDeploy/dist/common/utils/utcformatTime.js

1 line
2.2 KiB
JavaScript

'use strict';function _0x15b4(){const _0x37833f=['1773NgekPf','6993892cfFvSK','getHours','12QUAxZr','1748702bgSQwg','880zQnylf','2UYPZtb','54820caYFtB','YYYY','352575KrNqRC','slice','__esModule','1507930diCzIt','getDate','getMonth','replace','toString','utcToShanghaiTime','defineProperty','67064vLqjSB','5721016jSVckb','YYYY/MM/DD\x20hh:mm:ss'];_0x15b4=function(){return _0x37833f;};return _0x15b4();}const _0x5f4613=_0x2587;(function(_0x33751e,_0x3bfefa){const _0x2d54f1=_0x2587,_0x35c470=_0x33751e();while(!![]){try{const _0x460a8f=-parseInt(_0x2d54f1(0xf7))/0x1*(-parseInt(_0x2d54f1(0xf9))/0x2)+parseInt(_0x2d54f1(0xfc))/0x3+-parseInt(_0x2d54f1(0xf4))/0x4+parseInt(_0x2d54f1(0xe9))/0x5+-parseInt(_0x2d54f1(0xf6))/0x6*(parseInt(_0x2d54f1(0xf1))/0x7)+-parseInt(_0x2d54f1(0xf0))/0x8*(-parseInt(_0x2d54f1(0xf3))/0x9)+parseInt(_0x2d54f1(0xfa))/0xa*(parseInt(_0x2d54f1(0xf8))/0xb);if(_0x460a8f===_0x3bfefa)break;else _0x35c470['push'](_0x35c470['shift']());}catch(_0xc5d90b){_0x35c470['push'](_0x35c470['shift']());}}}(_0x15b4,0xd5917));Object[_0x5f4613(0xef)](exports,_0x5f4613(0xfe),{'value':!![]}),exports[_0x5f4613(0xee)]=void 0x0;function utcToShanghaiTime(_0x365452,_0x29490a=_0x5f4613(0xf2)){const _0x52787b=_0x5f4613,_0x2ac60e=new Date(_0x365452),_0x5a6e05=_0x2ac60e['getTime']()+0x8*0x3c*0x3c*0x3e8,_0x3b2f14=new Date(_0x5a6e05);let _0x103769=_0x29490a[_0x52787b(0xec)](_0x52787b(0xfb),_0x3b2f14['getFullYear']()[_0x52787b(0xed)]());return _0x103769=_0x103769[_0x52787b(0xec)]('MM',('0'+(_0x3b2f14[_0x52787b(0xeb)]()+0x1))[_0x52787b(0xfd)](-0x2)),_0x103769=_0x103769[_0x52787b(0xec)]('DD',('0'+_0x3b2f14[_0x52787b(0xea)]())[_0x52787b(0xfd)](-0x2)),_0x103769=_0x103769['replace']('hh',('0'+_0x3b2f14[_0x52787b(0xf5)]())[_0x52787b(0xfd)](-0x2)),_0x103769=_0x103769['replace']('mm',('0'+_0x3b2f14['getMinutes']())['slice'](-0x2)),_0x103769=_0x103769[_0x52787b(0xec)]('ss',('0'+_0x3b2f14['getSeconds']())[_0x52787b(0xfd)](-0x2)),_0x103769;}function _0x2587(_0x4998ae,_0xc29ac6){const _0x15b415=_0x15b4();return _0x2587=function(_0x25871b,_0x463407){_0x25871b=_0x25871b-0xe9;let _0x1693c4=_0x15b415[_0x25871b];return _0x1693c4;},_0x2587(_0x4998ae,_0xc29ac6);}exports[_0x5f4613(0xee)]=utcToShanghaiTime;