| Method | Defined by | ||
|---|---|---|---|
|
adoptHTMLToTextField(html:String, stripImage:Boolean = false, createXHTML:Boolean = false):String
[static]
Try to process any HTML to TextField.htmlText-valid format.
| Utils | ||
|
dateFromString(string:String):Date
[static]
Parses date from "20090404T015200" or "20090403T215200Z" to
Date. | Utils | ||
|
dateToString(date:Date):String
[static]
Converts date to string, ex.
| Utils | ||
|
formatBytes(bytes:Number):String
[static]
Formats bytes to string, ex.
| Utils | ||
|
formatDate(date:Date, templateId:String = null, template:String = null):String
[static]
Converts
Date to String according to the given
template. | Utils | ||
|
getDate(type:String = null):*
[static]
Returns
Date or String object. | Utils | ||
|
timezoneOffset():int
[static]
Returns user preferences timezone offset in seconds.
| Utils | ||
| adoptHTMLToTextField | () | method |
public static function adoptHTMLToTextField(html:String, stripImage:Boolean = false, createXHTML:Boolean = false):StringTry to process any HTML to TextField.htmlText-valid format.
Parametershtml:String |
|
stripImage:Boolean (default = false) |
|
createXHTML:Boolean (default = false) |
String |
See also
| dateFromString | () | method |
public static function dateFromString(string:String):Date
Parses date from "20090404T015200" or "20090403T215200Z" to
Date.
string:String |
Date |
| dateToString | () | method |
public static function dateToString(date:Date):StringConverts date to string, ex. "20090720T111918".
Parametersdate:Date |
String |
| formatBytes | () | method |
public static function formatBytes(bytes:Number):StringFormats bytes to string, ex. "24 Kb".
Parametersbytes:Number — Number of bytes.
|
String — Resulting string.
|
| formatDate | () | method |
public static function formatDate(date:Date, templateId:String = null, template:String = null):String
Converts Date to String according to the given
template. If no template was given, it is selected automatically.
date:Date — Target date.
|
|
templateId:String (default = null) — Id from server strings, ex. "DatePictures.timeOnly".
|
|
template:String (default = null) — Template itself, ex. "^h:^m:^s^t".
|
String — Formatted date.
|
| getDate | () | method |
public static function getDate(type:String = null):*
Returns Date or String object.
type:String (default = null) — Possible values are "localString", "local", "utcString".
|
* |
| timezoneOffset | () | method |
public static function timezoneOffset():intReturns user preferences timezone offset in seconds.
Returnsint — Positive or negative number of seconds.
|