dundas.controls.DateTimeInterval Class

 

Inheritance Hierarchy

 
Class
   dundas.controls.DateTimeInterval
 

Constructors

 
  Name Description
init Initializes a new instance of the DateTimeInterval type.
 
 

Properties

 
  Name Description
size Gets or sets the number of occurrences of the date/time type of this interval.
type Gets or sets the date/time type this interval represents.
 
 

Methods

 
  Name Description

Static
addIntervalToDate Adds an interval in place to date.

Static
compare Compares two date/time intervals.
compare Compares this date/time interval to another.

Static
fromDateDifference Returns intervals of the largest types possible with a positive, integer size based on the difference between date1 and date2.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.

Static
normalizeTimezone Gets a date modified if necessary so that the milliseconds value of each represents a difference in time between the two dates ignoring any time zone difference.
reduceType Converts this interval into the type newType if it is smaller than type.

Static
sizeOfTypeBetween Gets the size of the interval between start and end in units of type.

Static
toCommonIntervals Reduces two sets of possible intervals to one representing the greatest common intervals.
toCommonIntervalWith Modifies this interval so that the final state evenly divides both other and this interval's original values.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.