Property | Defined by | ||
---|---|---|---|
_days : Array [static]
| DateUtil | ||
_months : Object [static]
| DateUtil |
Method | Defined by | ||
---|---|---|---|
getConversationalDateString(date:Date, now:Date = null):String
[static]
Calculates a brief, conversational representation of the given date relative to 'now':
Date occured in a past year:
10/10/1969
Date occured over 6 days ago:
Oct 10
Date occured over 23 hours ago:
Wed 15:10
Date occured in the past 23 hours:
15:10
| DateUtil | ||
getDayName(day:uint, full:Boolean = false):String
[static]
Return the name of the given (integer) day; 0 is Sunday, and so on.
| DateUtil | ||
getMonthName(month:uint, full:Boolean = false):String
[static]
Return the name of the given (integer) month; 0 is January, and so on.
| DateUtil |
_days | property |
protected static var _days:Array
_months | property |
protected static var _months:Object
getConversationalDateString | () | method |
public static function getConversationalDateString(date:Date, now:Date = null):String
Calculates a brief, conversational representation of the given date relative to 'now': Date occured in a past year: 10/10/1969 Date occured over 6 days ago: Oct 10 Date occured over 23 hours ago: Wed 15:10 Date occured in the past 23 hours: 15:10
Parametersdate:Date |
|
now:Date (default = null )
|
String |
getDayName | () | method |
public static function getDayName(day:uint, full:Boolean = false):String
Return the name of the given (integer) day; 0 is Sunday, and so on.
Parametersday:uint |
|
full:Boolean (default = false )
|
String |
getMonthName | () | method |
public static function getMonthName(month:uint, full:Boolean = false):String
Return the name of the given (integer) month; 0 is January, and so on.
Parametersmonth:uint |
|
full:Boolean (default = false )
|
String |