requireTimeString()function
requireTimeString(value?: PossibleDate, caller: AnyCaller = requireTimeString): string
| Param | Type | |
|---|---|---|
value | PossibleDate | Values that can be converted to dates. |
caller | AnyCaller | Any calling function or constructor, usually referring to something that can call in the current scope that can appear in a stack trace. Defaults to requireTimeString |
| Return | |
|---|---|
string |
Convert a possible Date instance to local time string like "18:32:00", or throw RequiredError if it couldn't be converted.