Home > @i2analyze/i2connect > data > createLocalTime
data.createLocalTime() function
Creates a local time object (that does not have a date or a time zone) from an ISO 8601 string ('hh:mm:ss' or 'hh:mm:ss.sss').
Signature:
function createLocalTime(iso8601: ISO8601Time): ILocalTime;
Introduced: API version 2.0
Parameters
Parameter | Type | Description |
---|---|---|
iso8601 | ISO8601Time | An ISO 8601-formatted string that represents the time. |
Returns:
The new local time object.
Exceptions
Error
if the string was not in valid ISO 8601 format.