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.
@@ -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 : undefined).format("YYYY-MM-DD");
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 : undefined).format("YYYY/MM/DD HH:mm:ss");
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 : undefined).format("YYYY/MM/DD HH:mm:ss");
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 : undefined).format("YYYY-MM-DD-HH-mm-ss");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.174",
3
+ "version": "1.0.176",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "configerer": "^1.0.11",
14
- "utiller": "^1.0.173",
14
+ "utiller": "^1.0.175",
15
15
  "linepayer": "^1.0.4",
16
16
  "databazer": "^1.0.11",
17
17
  "lodash": "^4.17.20",