i2 Connect SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/i2connect > data > createLocalDateTime

    data.createLocalDateTime() function

    Creates a local date-time object, which does not have a time zone, from year/month/day/hour/minute/second/milli information.

    Signature:

    function createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): ILocalDateTime;
    

    Introduced: API version 2.0

    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:

    ILocalDateTime

    The new local date-time object.

    In this article
    Back to top © N. Harris Computer Corporation