- Source:
Methods
(static) convert(x, requireMillisopt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
x |
string | value |
|
requireMillis |
boolean |
<optional> |
whether milliseconds are required |
Returns:
converted value
- Type
- string
(static) convertMeridian(x) → {string}
- Source:
converts "11:30 AM", and "11:30 ", and "11:30 上午" to: "11:30" converts "11:30 PM", and "11:30 下午" to: "23:30"
Parameters:
Name | Type | Description |
---|---|---|
x |
string | value |
Returns:
converted value
- Type
- string
(static) validate(x, requireMillisopt) → {boolean}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
x |
string | value |
|
requireMillis |
boolean |
<optional> |
whether milliseconds are required |
Returns:
whether value is valid
- Type
- boolean