| Package | org.osmf.smpte.tt.timing |
| Class | public class TimeSpan |
| Inheritance | TimeSpan Object |
| Implements | IComparable, IEquals |
| Property | Defined By | ||
|---|---|---|---|
| days : int [read-only]
Gets the number of whole days
| TimeSpan | ||
| hours : int [read-only]
Gets the number of whole hours (excluding entire days)
| TimeSpan | ||
| milliseconds : int [read-only]
Gets the number of whole milliseconds (excluding entire seconds)
| TimeSpan | ||
| minutes : int [read-only]
Gets the number of whole minutes (excluding entire hours)
| TimeSpan | ||
| seconds : int [read-only]
Gets the number of whole seconds (excluding entire minutes)
| TimeSpan | ||
| ticks : Number [read-only]
Gets the number of ticks
| TimeSpan | ||
| totalDays : Number [read-only]
Gets the total number of days. | TimeSpan | ||
| totalHours : Number [read-only]
Gets the total number of hours. | TimeSpan | ||
| totalMilliseconds : Number [read-only]
Gets the total number of milliseconds. | TimeSpan | ||
| totalMinutes : Number [read-only]
Gets the total number of minutes. | TimeSpan | ||
| totalSeconds : Number [read-only]
Gets the total number of seconds. | TimeSpan | ||
| Property | Defined By | ||
|---|---|---|---|
| _value : Number | TimeSpan | ||
| Method | Defined By | ||
|---|---|---|---|
TimeSpan(... args) | TimeSpan | ||
Add a given TimeSpan to another
| TimeSpan | ||
addDate(date:Date):Date
Adds the timespan represented by this instance to the date provided and returns a new date object. | TimeSpan | ||
[static]
Compare two TimeSpan values. | TimeSpan | ||
compareTo(p_value:Object):int
Compares this TimeSpan with the specified TimeSpan for order. | TimeSpan | ||
Return the absolute duration of a TimeSpan value. | TimeSpan | ||
equals(p_value:Object):Boolean
Tests equality for TimeSpan values
| TimeSpan | ||
[static]
Determine if two TimeSpan values are equal. | TimeSpan | ||
[static]
Creates a TimeSpan from the different between two dates
Note that start can be after end, but it will result in negative values. | TimeSpan | ||
[static]
Creates a TimeSpan from the specified number of days
| TimeSpan | ||
[static]
Creates a TimeSpan from the specified number of hours
| TimeSpan | ||
fromMilliseconds(value:Number):TimeSpan [static]
Creates a TimeSpan from the specified number of milliseconds
| TimeSpan | ||
fromMinutes(value:Number):TimeSpan [static]
Creates a TimeSpan from the specified number of minutes
| TimeSpan | ||
fromSeconds(value:Number):TimeSpan [static]
Creates a TimeSpan from the specified number of seconds
| TimeSpan | ||
[static]
Creates a TimeSpan from the specified number of ticks
| TimeSpan | ||
getHashCode():int
Get the hash code for this instance. | TimeSpan | ||
Subtract a given TimeSpan from another. | TimeSpan | ||
Negate a TimeSpan value. | TimeSpan | ||
[static]
Parse a string into a TimeSpan value. | TimeSpan | ||
Add a given TimeSpan to another
| TimeSpan | ||
Subtract TimeSpan values. | TimeSpan | ||
toString():String | TimeSpan | ||
| Constant | Defined By | ||
|---|---|---|---|
| MAX_VALUE : TimeSpan [static] | TimeSpan | ||
| MILLISECONDS_PER_DAY : Number = 86400000 [static]
The number of milliseconds in one day
| TimeSpan | ||
| MILLISECONDS_PER_HOUR : Number = 3600000 [static]
The number of milliseconds in one hour
| TimeSpan | ||
| MILLISECONDS_PER_MINUTE : Number = 60000 [static]
The number of milliseconds in one minute
| TimeSpan | ||
| MILLISECONDS_PER_SECOND : Number = 1000 [static]
The number of milliseconds in one second
| TimeSpan | ||
| MIN_VALUE : TimeSpan [static] | TimeSpan | ||
| TICKS_PER_DAY : Number = 864000000000 [static]
The number of ticks in one day
| TimeSpan | ||
| TICKS_PER_HOUR : Number = 36000000000 [static]
The number of ticks in one hour
| TimeSpan | ||
| TICKS_PER_MILLISECOND : Number = 10000 [static]
The number of ticks in one millisecond
| TimeSpan | ||
| TICKS_PER_MINUTE : Number = 600000000 [static]
The number of ticks in one minute
| TimeSpan | ||
| TICKS_PER_SECOND : Number = 10000000 [static]
The number of ticks in one second
| TimeSpan | ||
| ZERO : TimeSpan [static] | TimeSpan | ||
| _value | property |
protected var _value:Number| days | property |
days:int [read-only] Gets the number of whole days
public function get days():int| hours | property |
hours:int [read-only] Gets the number of whole hours (excluding entire days)
public function get hours():int| milliseconds | property |
milliseconds:int [read-only] Gets the number of whole milliseconds (excluding entire seconds)
public function get milliseconds():int| minutes | property |
minutes:int [read-only] Gets the number of whole minutes (excluding entire hours)
public function get minutes():int| seconds | property |
seconds:int [read-only] Gets the number of whole seconds (excluding entire minutes)
public function get seconds():int| ticks | property |
ticks:Number [read-only] Gets the number of ticks
public function get ticks():Number| totalDays | property |
totalDays:Number [read-only] Gets the total number of days.
public function get totalDays():Number| totalHours | property |
totalHours:Number [read-only] Gets the total number of hours.
public function get totalHours():Number| totalMilliseconds | property |
totalMilliseconds:Number [read-only] Gets the total number of milliseconds.
public function get totalMilliseconds():Number| totalMinutes | property |
totalMinutes:Number [read-only] Gets the total number of minutes.
public function get totalMinutes():Number| totalSeconds | property |
totalSeconds:Number [read-only] Gets the total number of seconds.
public function get totalSeconds():Number| TimeSpan | () | Constructor |
public function TimeSpan(... args)... args |
| add | () | method |
public function add(ts:TimeSpan):TimeSpanAdd a given TimeSpan to another
Parameters
ts:TimeSpan |
TimeSpan |
| addDate | () | method |
public function addDate(date:Date):DateAdds the timespan represented by this instance to the date provided and returns a new date object.
Parameters
date:Date — The date to add the timespan to
|
Date — A new Date with the offseted time
|
| Compare | () | method |
public static function Compare(t1:TimeSpan, t2:TimeSpan):intCompare two TimeSpan values.
Parameters
t1:TimeSpan — the first TimeSpan to compare
| |
t2:TimeSpan — the second TimeSpan to compare
|
int |
| compareTo | () | method |
public function compareTo(p_value:Object):intCompares this TimeSpan with the specified TimeSpan for order. Returns a negative integer, zero, or a positive integer as this TimeSpan is less than, equal to, or greater than the specified TimeSpan.
Parameters
p_value:Object — other TimeSpan to be compared
|
int — a negative integer, zero, or a positive integer as this TimeSpan is less than, equal to, or greater than the specified TimeSpan.
|
| duration | () | method |
public function duration():TimeSpanReturn the absolute duration of a TimeSpan value.
ReturnsTimeSpan |
| equals | () | method |
public function equals(p_value:Object):BooleanTests equality for TimeSpan values
Parameters
p_value:Object — the TimeSpan to compare to this TimeSpan for equality
|
Boolean |
| Equals | () | method |
public static function Equals(t1:TimeSpan, t2:TimeSpan):BooleanDetermine if two TimeSpan values are equal.
Parameters
t1:TimeSpan — the first TimeSpan to compare
| |
t2:TimeSpan — the second TimeSpan to compare
|
Boolean |
| fromDates | () | method |
public static function fromDates(start:Date, end:Date):TimeSpanCreates a TimeSpan from the different between two dates Note that start can be after end, but it will result in negative values.
Parameters
start:Date — The start date of the timespan
| |
end:Date — The end date of the timespan
|
TimeSpan — A TimeSpan that represents the difference between the dates
|
| fromDays | () | method |
public static function fromDays(value:Number):TimeSpanCreates a TimeSpan from the specified number of days
Parameters
value:Number — The number of days in the timespan
|
TimeSpan — A TimeSpan that represents the specified value
|
| fromHours | () | method |
public static function fromHours(value:Number):TimeSpanCreates a TimeSpan from the specified number of hours
Parameters
value:Number — The number of hours in the timespan
|
TimeSpan — A TimeSpan that represents the specified value
|
| fromMilliseconds | () | method |
public static function fromMilliseconds(value:Number):TimeSpanCreates a TimeSpan from the specified number of milliseconds
Parameters
value:Number — The number of milliseconds in the timespan
|
TimeSpan — A TimeSpan that represents the specified value
|
| fromMinutes | () | method |
public static function fromMinutes(value:Number):TimeSpanCreates a TimeSpan from the specified number of minutes
Parameters
value:Number — The number of minutes in the timespan
|
TimeSpan — A TimeSpan that represents the specified value
|
| fromSeconds | () | method |
public static function fromSeconds(value:Number):TimeSpanCreates a TimeSpan from the specified number of seconds
Parameters
value:Number — The number of seconds in the timespan
|
TimeSpan — A TimeSpan that represents the specified value
|
| fromTicks | () | method |
public static function fromTicks(ticks:Number):TimeSpanCreates a TimeSpan from the specified number of ticks
Parameters
ticks:Number — The number of ticks in the timespan
|
TimeSpan — A TimeSpan that represents the specified value
|
| getHashCode | () | method |
public function getHashCode():intGet the hash code for this instance.
Returnsint |
| minus | () | method |
public function minus(ts:TimeSpan):TimeSpanSubtract a given TimeSpan from another.
Parameters
ts:TimeSpan |
TimeSpan |
| negate | () | method |
| parse | () | method |
public static function parse(p_expression:String):TimeSpanParse a string into a TimeSpan value.
Parameters
p_expression:String |
TimeSpan |
| plus | () | method |
public function plus(ts:TimeSpan):TimeSpanAdd a given TimeSpan to another
Parameters
ts:TimeSpan |
TimeSpan |
| subtract | () | method |
public function subtract(ts:TimeSpan):TimeSpanSubtract TimeSpan values.
Parameters
ts:TimeSpan |
TimeSpan |
| toString | () | method |
public function toString():StringReturnsString |
| MAX_VALUE | Constant |
public static const MAX_VALUE:TimeSpan| MILLISECONDS_PER_DAY | Constant |
public static const MILLISECONDS_PER_DAY:Number = 86400000The number of milliseconds in one day
| MILLISECONDS_PER_HOUR | Constant |
public static const MILLISECONDS_PER_HOUR:Number = 3600000The number of milliseconds in one hour
| MILLISECONDS_PER_MINUTE | Constant |
public static const MILLISECONDS_PER_MINUTE:Number = 60000The number of milliseconds in one minute
| MILLISECONDS_PER_SECOND | Constant |
public static const MILLISECONDS_PER_SECOND:Number = 1000The number of milliseconds in one second
| MIN_VALUE | Constant |
public static const MIN_VALUE:TimeSpan| TICKS_PER_DAY | Constant |
public static const TICKS_PER_DAY:Number = 864000000000The number of ticks in one day
| TICKS_PER_HOUR | Constant |
public static const TICKS_PER_HOUR:Number = 36000000000The number of ticks in one hour
| TICKS_PER_MILLISECOND | Constant |
public static const TICKS_PER_MILLISECOND:Number = 10000The number of ticks in one millisecond
| TICKS_PER_MINUTE | Constant |
public static const TICKS_PER_MINUTE:Number = 600000000The number of ticks in one minute
| TICKS_PER_SECOND | Constant |
public static const TICKS_PER_SECOND:Number = 10000000The number of ticks in one second
| ZERO | Constant |
public static const ZERO:TimeSpan