| Property | Defined By | ||
|---|---|---|---|
| begin : Number [read-only]
Returns the begin time for the time range. | TimeRange | ||
| duration : Number [read-only]
Returns the duration of the time range. | TimeRange | ||
| end : Number [read-only]
Returns the end time of the time range. | TimeRange | ||
| Method | Defined By | ||
|---|---|---|---|
TimeRange(begin:Number, end:Number)
Default constructor. | TimeRange | ||
contains(position:Number):Boolean
Returns whether the provided position is contained inside the time range. | TimeRange | ||
createRange(begin:Number, duration:Number):TimeRange [static]
Creates a new time range with the specified values as limits. | TimeRange | ||
toString():String
Returns a String representation of the current time range. | TimeRange | ||
| begin | property |
begin:Number [read-only] Returns the begin time for the time range.
public function get begin():Number| duration | property |
duration:Number [read-only] Returns the duration of the time range.
public function get duration():Number| end | property |
end:Number [read-only] Returns the end time of the time range.
public function get end():Number| TimeRange | () | Constructor |
public function TimeRange(begin:Number, end:Number)Default constructor.
Parametersbegin:Number | |
end:Number |
| contains | () | method |
public function contains(position:Number):BooleanReturns whether the provided position is contained inside the time range.
Parameters
position:Number — the time position to be checked
|
Boolean — true is the position is inside the range, false otherwise.
|
| createRange | () | method |
public static function createRange(begin:Number, duration:Number):TimeRangeCreates a new time range with the specified values as limits.
Parameters
begin:Number — The begin time.
| |
duration:Number — The end time.
|
TimeRange —
|
| toString | () | method |
public function toString():StringReturns a String representation of the current time range.
ReturnsString — a string containing the beginning and the end of the time range.
|