Home > @i2analyze/i2connect > data > createLocalTime
data.createLocalTime() function
Creates a local time object (that does not have a date or a time zone) from hour/minute/second information.
Signature:
function createLocalTime(hour: number, minute: number, second: number, milli?: number): ILocalTime;
Introduced: API version 2.0
Parameters
Parameter | Type | Description |
---|---|---|
hour | number | The hour of the day (0-23). |
minute | number | The minutes of the hour (0-59). |
second | number | The seconds of the minute (0-59). |
milli | number | (Optional) The milliseconds of the second (0-999). |
Returns:
The new local time object.