Packagecom.flexcalendar.components.calendar.core
Classpublic class DateRange
InheritanceDateRange Inheritance flash.events.EventDispatcher

Class representing date range - range from start date to end date



Public Properties
 PropertyDefined By
  daySpan : int
[read-only] Number of days in this dateRange.
DateRange
  duration : Number
[read-only] Duration of this range, in milliseconds
DateRange
  end : Date
End date of this range Can't be before start date.
DateRange
  start : Date
Start date of this range Can't be after end date.
DateRange
Public Methods
 MethodDefined By
  
DateRange(start:Date, end:Date)
Create new DateRange instance
DateRange
  
contains(date:Date):Boolean
True if this date range contains specified date, false otherwise.
DateRange
  
setRange(start:Date, end:Date):void
Sets new start and end properties.
DateRange
Property Detail
daySpanproperty
daySpan:int  [read-only]

Number of days in this dateRange.


Implementation
    public function get daySpan():int
durationproperty 
duration:Number  [read-only]

Duration of this range, in milliseconds


Implementation
    public function get duration():Number
endproperty 
end:Date

End date of this range Can't be before start date. To update both start and end date use setRange() method

This property can be used as the source for data binding.


Implementation
    public function get end():Date
    public function set end(value:Date):void

See also

setRange()
startproperty 
start:Date

Start date of this range Can't be after end date. To update both start and end date use setRange() method

This property can be used as the source for data binding.


Implementation
    public function get start():Date
    public function set start(value:Date):void

See also

setRange()
Constructor Detail
DateRange()Constructor
public function DateRange(start:Date, end:Date)

Create new DateRange instance

Parameters
start:Date — Start date. Can't be null
 
end:Date — End date. Can't be null, can't be before start
Method Detail
contains()method
public function contains(date:Date):Boolean

True if this date range contains specified date, false otherwise.

Parameters

date:Date — date to test

Returns
Boolean — true or false
setRange()method 
public function setRange(start:Date, end:Date):void

Sets new start and end properties.

Parameters

start:Date — start time
 
end:Date — end time