You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/shi.js
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ function unitConverterAfter(str, to) {
138
138
/**
139
139
* human time (中文/English) parsed to Arabic number in seconds.
140
140
* @param {String|Number} str The string need to be parsed or the time in different unixes.
141
-
* @param {Object} option (optional) *{ as (only used when no unix is in str): (d, h, m (min), s, ms), to: (d, h, m (min), s, ms) }*
141
+
* @param {Object} option (optional) *{ ignoreError: boolean, as (only used when no unix is in str): (d, h, m (min), s, ms), to: (d, h, m (min), s, ms) }*
142
142
* @returns {Number} The converted number
143
143
*/
144
144
functionhumanTimeParser(str,option){
@@ -166,7 +166,10 @@ function humanTimeParser(str, option) {
0 commit comments