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.
- package/lib/utiller/index.js +12 -0
- package/package.json +1 -1
- package/template/sample.package.json +1 -1
package/lib/utiller/index.js
CHANGED
|
@@ -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