utiller 1.0.174 → 1.0.176
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/lib/utiller/index.js +14 -4
- package/package.json +1 -1
- package/template/sample.package.json +1 -1
package/lib/utiller/index.js
CHANGED
|
@@ -1425,24 +1425,34 @@ var Utiller = /*#__PURE__*/function () {
|
|
|
1425
1425
|
}, {
|
|
1426
1426
|
key: "getTodayTimeFormat",
|
|
1427
1427
|
value: function getTodayTimeFormat(ts) {
|
|
1428
|
-
return (0, _moment["default"])(ts ? ts :
|
|
1428
|
+
return (0, _moment["default"])(ts ? ts : this.getCurrentTimeStamp()).format("YYYY-MM-DD");
|
|
1429
1429
|
}
|
|
1430
1430
|
}, {
|
|
1431
1431
|
key: "getECPayCurrentTimeFormat",
|
|
1432
1432
|
value: function getECPayCurrentTimeFormat(ts) {
|
|
1433
|
-
return (0, _moment["default"])(ts ? ts :
|
|
1433
|
+
return (0, _moment["default"])(ts ? ts : this.getCurrentTimeStamp()).format("YYYY/MM/DD HH:mm:ss");
|
|
1434
1434
|
}
|
|
1435
1435
|
}, {
|
|
1436
1436
|
key: "getCurrentTimeFormatV2",
|
|
1437
1437
|
value: function getCurrentTimeFormatV2(ts) {
|
|
1438
|
-
return (0, _moment["default"])(ts ? ts :
|
|
1438
|
+
return (0, _moment["default"])(ts ? ts : this.getCurrentTimeStamp()).format("YYYY/MM/DD HH:mm:ss");
|
|
1439
|
+
}
|
|
1440
|
+
}, {
|
|
1441
|
+
key: "getCurrentTimeFormatYMDHM",
|
|
1442
|
+
value: function getCurrentTimeFormatYMDHM(ts) {
|
|
1443
|
+
return (0, _moment["default"])(ts ? ts : this.getCurrentTimeStamp()).format("YYYY/MM/DD HH:mm");
|
|
1444
|
+
}
|
|
1445
|
+
}, {
|
|
1446
|
+
key: "getCurrentTimeFormatYMDHMS",
|
|
1447
|
+
value: function getCurrentTimeFormatYMDHMS(ts) {
|
|
1448
|
+
return (0, _moment["default"])(ts ? ts : this.getCurrentTimeStamp()).format("YYYY/MM/DD HH:mm:ss");
|
|
1439
1449
|
}
|
|
1440
1450
|
/** 取得 YYY-MM-DD-HH-mm-ss */
|
|
1441
1451
|
|
|
1442
1452
|
}, {
|
|
1443
1453
|
key: "getCurrentTimeFormat",
|
|
1444
1454
|
value: function getCurrentTimeFormat(ts) {
|
|
1445
|
-
return (0, _moment["default"])(ts ? ts :
|
|
1455
|
+
return (0, _moment["default"])(ts ? ts : this.getCurrentTimeStamp()).format("YYYY-MM-DD-HH-mm-ss");
|
|
1446
1456
|
}
|
|
1447
1457
|
}, {
|
|
1448
1458
|
key: "getCurrentMillionSecTimeFormat",
|
package/package.json
CHANGED