Class fever.utils.DateUtils

Description

Provides methods to deal with Date object.

Use DateResources for localisation.

Method Index

compare(), getFullDayIndex(), getFullDayName(), getFullMonthIndex(), getFullMonthName(), getShortDayIndex(), getShortDayName(), getShortHour(), getShortMonthIndex(), getShortMonthName(), getShortYear(), milli2time(), seconde2time()

Method Detail

compare

static public function compare(d1:Date, d2:Date):Number

Returns -1 if passed-in d1 date is inferior to d2 date.
Else 0 if dates are equal or 1 if d1 is superior to d2

getFullDayIndex

static public function getFullDayIndex(dayName:String):Number

Returns day index according the passed-in dayName.

See Also

getFullDayName

static public function getFullDayName(date:Date):String

Returns full day name from passed-in date object

See Also

getFullMonthIndex

static public function getFullMonthIndex(monthName:String):Number

Returns month index according the passed-in monthName.

See Also

getFullMonthName

static public function getFullMonthName(date:Date):String

Returns full month name from passed-in date object

See Also

getShortDayIndex

static public function getShortDayIndex(dayName:String):Number

Returns month index according the passed-in dayName.

See Also

getShortDayName

static public function getShortDayName(date:Date):String

Returns short day name from passed-in date object

See Also

getShortMonthIndex

static public function getShortMonthIndex(monthName:String):Number

Returns month index according the passed-in monthName.

See Also

getShortMonthName

static public function getShortMonthName(date:Date):String

Returns short month name from passed-in date object

See Also

getShortYear

static public function getShortYear(date:Date):String

Returns short year format from passed-in date object

getShortHour

static public function getShortHour(date:Date):Number

Returns short hour format from passed-in date object

milli2time

static public function milli2time(ms:Number):String

Returns hh:mm:ss representation of passed-in ms milliseconde value.

seconde2time

static public function seconde2time(seconde:Number):String

Returns hh:mm:ss representation of passed-in s seconde value.