utiller 1.0.154 → 1.0.155

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.
@@ -1426,6 +1426,15 @@ var Utiller = /*#__PURE__*/function () {
1426
1426
 
1427
1427
  return base.valueOf();
1428
1428
  }
1429
+ /** 把 YYYY-MM-DD HH:mm:ss 轉換成 timestamp
1430
+ * 請注意 DD HH 之間有一個空格
1431
+ * */
1432
+
1433
+ }, {
1434
+ key: "getTimeStampByStringFormat",
1435
+ value: function getTimeStampByStringFormat(string) {
1436
+ return (0, _moment["default"])(string, "YYYY-MM-DD HH:mm:ss").valueOf();
1437
+ }
1429
1438
  /** 要記住timestamp 可以轉換成西元時間(timestamp),或是期間(duration) 把duration time-stamp 轉成 02:13.445 */
1430
1439
 
1431
1440
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.154",
3
+ "version": "1.0.155",
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.153",
14
+ "utiller": "^1.0.154",
15
15
  "linepayer": "^1.0.4",
16
16
  "databazer": "^1.0.11",
17
17
  "lodash": "^4.17.20",