ig.scheduler.DateTimeRange

Represents a contiguous span of time. This class is immutable.

Dependencies

jquery-1.4.4.js
infragistics.util.js
infragistics.ext_core.js
infragistics.ext_collections.js
infragistics.ext_collectionsExtended.js
infragistics.ext_io.js
infragistics.ext_text.js
infragistics.ext_web.js
infragistics.dv_core.js
infragistics.dv_jquerydom.js
infragistics.dv_interactivity.js
infragistics.ext_ui.js
The current widget has no options.
The current widget has no events.
  • ig.scheduler.DateTimeRange
    Constructor

    new $.ig.scheduler.DateTimeRange( start:ig.Date, end:ig.Date );

    Creates a new instance with the specified start and end times.

    • start
    • Type:ig.Date
    • The date/time which marks the beginning of the range.
    • end
    • Type:ig.Date
    • The date/time which marks the end of the range.
  • contains

    .contains( value:ig.Date );
    Return Type:
    boolean
    Return Type Description:
    True if the value lies completely within this range.

    Returns a boolean value indicating whether the specified date/time value lies completely within this range.

    • value
    • Type:ig.Date
    • The DateTime value to test.
  • end

    .end( );

    Returns the date and time of the end of the range.

  • intersectsWith

    .intersectsWith( range:ig.scheduler.DateTimeRange, [isEndExclusive:boolean] );

    Returns a boolean value indicating whether the specified range intersects with any part of this range.

    • range
    • Type:ig.scheduler.DateTimeRange
    • The DateTimeRange to which this range is compared.
    • isEndExclusive
    • Type:boolean
    • Optional
    • Boolean value indicating the manner in which the value of the specified range's DateTimeRange.start property is compared to the value of this instance's DateTimeRange.end property. When true is specified, this method returns false if the start of the specified range is exactly equal to the value of this instance's DateTimeRange.end property, thereby excluding the moment in time which coincides exactly with the end of this range. This parameter defaults to true.
  • intersectsWith

    .intersectsWith( start:ig.Date, end:ig.Date, [isEndExclusive:boolean] );

    Returns a boolean value indicating whether the specified range intersects with any part of this range.

    • start
    • Type:ig.Date
    • The earliest date/time of the range to test.
    • end
    • Type:ig.Date
    • The latest date/time of the range to test.
    • isEndExclusive
    • Type:boolean
    • Optional
    • Boolean value indicating the manner in which the value of the start parameter is compared to the value of the DateTimeRange.end property. When true is specified, this method returns false if the value of the start parameter is exactly equal to the value of this instance's DateTimeRange.end property, thereby excluding the moment in time which coincides exactly with the end of this range. This parameter defaults to true.
  • start

    .start( );

    Returns the date and time of the beginning of the range.

  • toString

    .toString( );

    Returns the string representation of this object.

Copyright © 1996 - 2024 Infragistics, Inc. All rights reserved.