utiller 1.0.144 → 1.0.147

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.
@@ -224,6 +224,13 @@ var Utiller = /*#__PURE__*/function () {
224
224
  numbers[last] = numbers[last] + delta;
225
225
  return numbers.join(".");
226
226
  }
227
+ }, {
228
+ key: "setLocaleOfMoment",
229
+ value: function setLocaleOfMoment() {
230
+ var locale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "en";
231
+
232
+ _moment["default"].locale(locale);
233
+ }
227
234
  }, {
228
235
  key: "getUuidOfV4",
229
236
  value: function getUuidOfV4() {
@@ -1344,6 +1351,11 @@ var Utiller = /*#__PURE__*/function () {
1344
1351
  value: function getTodayTimeFormat(ts) {
1345
1352
  return (0, _moment["default"])(ts ? ts : undefined).format("YYYY-MM-DD");
1346
1353
  }
1354
+ }, {
1355
+ key: "getECPayCurrentTimeFormat",
1356
+ value: function getECPayCurrentTimeFormat(ts) {
1357
+ return (0, _moment["default"])(ts ? ts : undefined).format("YYYY/MM/DD HH:mm:ss");
1358
+ }
1347
1359
  /** 取得 YYY-MM-DD-HH-mm-ss */
1348
1360
 
1349
1361
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.144",
3
+ "version": "1.0.147",
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.143",
14
+ "utiller": "^1.0.146",
15
15
  "linepayer": "^1.0.4",
16
16
  "databazer": "^1.0.11",
17
17
  "lodash": "^4.17.20",