# class TimeRange

#### package com.turner.top.lib.utils

Defines range of time values

### Constructor

###

`new (begin:Float, end:Float, ?options:TimeRangeOptions)`

### Variables

###

`read onlybegin:Float`

Smallest time value in range

###

`read onlyduration:Float`

The duration of the range

###

`read onlyend:Float`

Largest time value in range

### Methods

###

`contains (time:Float):Bool`

Check if specified time is within range

Parameters:

`time` | The time to check

Returns:

true if within range

###

`greaterThanRange (range:TimeRange, inclusive:Bool = true):Bool`

Determine if this range is beyond a given range

###

`intersectsRange (range:TimeRange):Bool`

Determine if this range intersects a given range

###

`lessThanRange (range:TimeRange, inclusive:Bool = true):Bool`

Determine if this range is less than a given range

###

`outsideRange (range:TimeRange):Bool`

Determine if this range is outside a given range

###

`toString ():String`

### Static methods

###

`staticcreate (startTime:Float, duration:Float):TimeRange`

###

`staticcreateWithEnd (startTime:Float, endTime:Float):TimeRange`