Packagexp.utils
Classpublic class TimeIntervalFormat

TimeIntervalFormat Format TimeInterval for display TimeIntervals require special handling from DataTime objects

See also

support
xp.utils.TimeInterval


Public Methods
 MethodDefined by
  
TimeIntervalFormat(pattern:String)
Creates a new instance of hte TimeInterval formatter
TimeIntervalFormat
  
applyPattern(pattern:String):void
Applies the given pattern string to this time interval format Applies the given pattern string to this time interval format.
TimeIntervalFormat
  
format(interval:Number):String
formats the interval specified by the interval
TimeIntervalFormat
Constructor detail
TimeIntervalFormat()constructor
public function TimeIntervalFormat(pattern:String)

Creates a new instance of hte TimeInterval formatter

Parameters
pattern:String — The pattern to apply
Method detail
applyPattern()method
public function applyPattern(pattern:String):void

Applies the given pattern string to this time interval format Applies the given pattern string to this time interval format.

Parameters
pattern:String — - the new date and time pattern for this date format
format()method 
public function format(interval:Number):String

formats the interval specified by the interval

Parameters
interval:Number

Returns
String