i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > app > IValueFactory > createZonedDateTime

    app.IValueFactory.createZonedDateTime() method

    Creates a date-time object that has a time zone from a local date, a local time, and a time zone.

    Signature:

    createZonedDateTime(date: data.ILocalDate, time: data.ILocalTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
    

    Introduced: version 1.1

    Parameters

    Parameter Type Description
    date data.ILocalDate A local date.
    time data.ILocalTime A local time.
    timeZone data.ITimeZone | data.TimeZoneId A time zone, or a time zone identifier.
    isDst boolean

    true if the date-time is in daylight saving time for the specified time zone; false otherwise.

    This value is especially important for date-time values that are ambiguous, such as during the period when clocks go back from DST to not-DST and the same local time occurs twice.

    Returns:

    data.IZonedDateTime

    The new date-time object.

    Exceptions

    Error if timeZone did not specify a valid time zone.

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