Home > @i2analyze/notebook-sdk > app > IValueFactory > createLocalDateTime
app.IValueFactory.createLocalDateTime() method
Creates a local date-time object (that does not have a time zone) from year/month/day/hour/minute/second information.
Signature:
createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): data.ILocalDateTime;
Introduced: version 1.1
Parameters
Parameter | Type | Description |
---|---|---|
year | number | The full year of the date; for example, 1973 . |
month | number | The (1-based) month of the year (1-12). |
day | number | The (1-based) day of the month (1-31). |
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 date-time object.