|
@@ -290,12 +290,16 @@ const INTERFACE_EXPORT_BASE = (() => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//获取当前时间,格式YYYY-MM-DD HH:mm
|
|
//获取当前时间,格式YYYY-MM-DD HH:mm
|
|
|
- function getNowFormatTime() {
|
|
|
|
|
|
|
+ function getNowFormatTime(T) {
|
|
|
var nowDate = new Date();
|
|
var nowDate = new Date();
|
|
|
var colon = ":";
|
|
var colon = ":";
|
|
|
var h = nowDate.getHours();
|
|
var h = nowDate.getHours();
|
|
|
var m = nowDate.getMinutes();
|
|
var m = nowDate.getMinutes();
|
|
|
var s = nowDate.getSeconds();
|
|
var s = nowDate.getSeconds();
|
|
|
|
|
+ if (T) {
|
|
|
|
|
+ return getNowFormatDay(nowDate) + "T" + completeDate(h) + colon + completeDate(m)+colon+completeDate(s);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//补全0,并拼接
|
|
//补全0,并拼接
|
|
|
return getNowFormatDay(nowDate) + " " + completeDate(h) + colon + completeDate(m);
|
|
return getNowFormatDay(nowDate) + " " + completeDate(h) + colon + completeDate(m);
|
|
|
}
|
|
}
|