Packageorg.osmf.smpte.tt.timing
Classpublic class TimeExpression
InheritanceTimeExpression Inheritance Object



Public Properties
 PropertyDefined By
  CurrentClockMode : ClockMode
[static] Global clock mode for the current parse session.
TimeExpression
  CurrentFrameRate : Number
[static] Global framerate for the current parse session
TimeExpression
  CurrentFrameRateDenominator : Number
[static] Global frame rate denominator for the current parse session
TimeExpression
  CurrentFrameRateNominator : Number
[static] Global frame rate nominator for the current parse session
TimeExpression
  CurrentSmpteFrameRate : SmpteFrameRate
[static] [read-only] Global Smpte timecode to use for the current parse session
TimeExpression
  CurrentSmpteMode : SmpteMode
[static] Global smpte mode for the current parse session.
TimeExpression
  CurrentSubFrameRate : Number
[static] Global sub frame rate for the current parse session
TimeExpression
  CurrentTickRate : uint
[static] Global tick rate for the current parse session
TimeExpression
  CurrentTimeBase : TimeBase
[static] Global time base for the current parse session.
TimeExpression
Public Methods
 MethodDefined By
  
getMetricMultiplier(p_timeexpression:String, p_framerate:Number, p_tickrate:Number):Number
[static] Returns the number needed to convert a time expression to milliseconds if the time expression is defined in times of a time metric
TimeExpression
  
[static] Initialize global parameters for the next parse session
TimeExpression
  
parse(p_timeExpression:String):TimeCode
[static]
TimeExpression
  
UnitTests():Boolean
[static] Test the time parser.
TimeExpression
Public Constants
 ConstantDefined By
  clockTimeRegex : RegExp
[static] clock-time : hours ":" minutes ":" seconds ( fraction | ":" frames ( "." sub-frames )? )?
TimeExpression
  offsetTimeRegex : RegExp
[static] offset-time : time-count fraction? metric
TimeExpression
Property Detail
CurrentClockModeproperty
public static var CurrentClockMode:ClockMode

Global clock mode for the current parse session.

CurrentFrameRateproperty 
public static var CurrentFrameRate:Number

Global framerate for the current parse session

CurrentFrameRateDenominatorproperty 
public static var CurrentFrameRateDenominator:Number

Global frame rate denominator for the current parse session

CurrentFrameRateNominatorproperty 
public static var CurrentFrameRateNominator:Number

Global frame rate nominator for the current parse session

CurrentSmpteFrameRateproperty 
CurrentSmpteFrameRate:SmpteFrameRate  [read-only]

Global Smpte timecode to use for the current parse session


Implementation
    public static function get CurrentSmpteFrameRate():SmpteFrameRate
CurrentSmpteModeproperty 
public static var CurrentSmpteMode:SmpteMode

Global smpte mode for the current parse session.

CurrentSubFrameRateproperty 
public static var CurrentSubFrameRate:Number

Global sub frame rate for the current parse session

CurrentTickRateproperty 
public static var CurrentTickRate:uint

Global tick rate for the current parse session

CurrentTimeBaseproperty 
public static var CurrentTimeBase:TimeBase

Global time base for the current parse session.

Method Detail
getMetricMultiplier()method
public static function getMetricMultiplier(p_timeexpression:String, p_framerate:Number, p_tickrate:Number):Number

Returns the number needed to convert a time expression to milliseconds if the time expression is defined in times of a time metric

Parameters

p_timeexpression:String
 
p_framerate:Number
 
p_tickrate:Number

Returns
Number
initializeParameters()method 
public static function initializeParameters():void

Initialize global parameters for the next parse session

parse()method 
public static function parse(p_timeExpression:String):TimeCode

Parameters

p_timeExpression:String

Returns
TimeCode
UnitTests()method 
public static function UnitTests():Boolean

Test the time parser. Not comprehensive at this point

Returns
Boolean
Constant Detail
clockTimeRegexConstant
public static const clockTimeRegex:RegExp

clock-time : hours ":" minutes ":" seconds ( fraction | ":" frames ( "." sub-frames )? )?

offsetTimeRegexConstant 
public static const offsetTimeRegex:RegExp

offset-time : time-count fraction? metric