management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/dc95b0642ca53bba1f93af28c5d...

1 line
5.8 KiB
JSON
Raw Normal View History

2023-12-18 13:12:25 +08:00
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\utils\\dateTime.js","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\utils\\dateTime.js","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\n\n// 中国标准时间format yyyy-mm-dd\nvar format = function format(time) {\n var ymd = '';\n var mouth = time.getMonth() + 1 >= 10 ? time.getMonth() + 1 : '0' + (time.getMonth() + 1);\n var day = time.getDate() >= 10 ? time.getDate() : '0' + time.getDate();\n ymd += time.getFullYear() + '-'; // 获取年份。\n\n ymd += mouth + '-'; // 获取月份。\n\n ymd += day; // 获取日。\n\n return ymd; // 返回日期。\n};\n\nexport var getAllDate = function getAllDate(start, end) {\n var dateArr = [];\n var startArr = start.split('-');\n var endArr = end.split('-');\n var db = new Date();\n db.setUTCFullYear(startArr[0], startArr[1] - 1, startArr[2]);\n var de = new Date();\n de.setUTCFullYear(endArr[0], endArr[1] - 1, endArr[2]);\n var unixDb = db.getTime();\n var unixDe = de.getTime();\n var stamp;\n var oneDay = 24 * 60 * 60 * 1000;\n\n for (stamp = unixDb; stamp <= unixDe;) {\n dateArr.push(format(new Date(parseInt(stamp))));\n stamp = stamp + oneDay;\n }\n\n return dateArr;\n};\nexport function getNowFormatDate(date) {\n var seperator1 = \"-\";\n var year = date.getFullYear();\n var month = date.getMonth() + 1;\n var strDate = date.getDate();\n\n if (month >= 1 && month <= 9) {\n month = \"0\" + month;\n }\n\n if (strDate >= 0 && strDate <= 9) {\n strDate = \"0\" + strDate;\n }\n\n var currentdate = year + seperator1 + month + seperator1 + strDate;\n return currentdate;\n}",{"version":3,"sources":["C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\utils\\dateTime.js"],"names":["format","time","ymd","mouth","getMonth","day","getDate","getFullYear","getAllDate","start","end","dateArr","startArr","split","endArr","db","Date","setUTCFullYear","de","unixDb","getTime","unixDe","stamp","oneDay","push","parseInt","getNowFormatDate","date","seperator1","year","month","strDate","currentdate"],"mappings":";;AAAA;AACA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,IAAD,EAAU;AACxB,MAAIC,GAAG,GAAG,EAAV;AACA,MAAIC,KAAK,GAAIF,IAAI,CAACG,QAAL,KAAkB,CAAnB,IAAyB,EAAzB,GAA+BH,IAAI,CAACG,QAAL,KAAkB,CAAjD,GAAuD,OAAOH,IAAI,CAACG,QAAL,KAAkB,CAAzB,CAAnE;AACA,MAAIC,GAAG,GAAGJ,IAAI,CAACK,OAAL,MAAkB,EAAlB,GAAuBL,IAAI,CAACK,OAAL,EAAvB,GAAyC,MAAML,IAAI,CAACK,OAAL,EAAzD;AACAJ,EAAAA,GAAG,IAAID,IAAI,CAACM,WAAL,KAAqB,GAA5B,CAJwB,CAIQ;;AAChCL,EAAAA,GAAG,IAAIC,KAAK,GAAG,GAAf,CALwB,CAKL;;AACnBD,EAAAA,GAAG,IAAIG,GAAP,CANwB,CAMb;;AACX,SAAOH,GAAP,CAPwB,CAOb;AACX,CARD;;AAUA,OAAO,IAAMM,UAAU,GAAG,SAAbA,UAAa,CAACC,KAAD,EAAQC,GAAR,EAAgB;AACzC,MAAIC,OAAO,GAAG,EAAd;AACA,MAAIC,QAAQ,GAAGH,KAAK,CAACI,KAAN,CAAY,GAAZ,CAAf;AACA,MAAIC,MAAM,GAAGJ,GAAG,CAAC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