DateTools
class DateToolsAvailable in flash8, flash, neko, js, php, cppThe DateTools class contains some extra functionalities for
Date manipulation. It's stored in a different class in order to prevent the standard Date of being bloated and thus increasing the size of each application using it.
static function days( n : Float ) : FloatConvert a number of days to a date-time
static function delta( d : Date, t : Float ) : DateReturns a Date which time has been changed by t milliseconds.
static function format( d : Date, f : String ) : StringFormat the date d according to the format f. The format is compatible with the strftime standard format, except that there is no support in Flash and JS for day and months names (due to lack of proper internationalization API) and the %e format is supported. On Haxe/Neko/Windows, some formats are not supported.
static function getMonthDays( d : Date ) : IntReturns the number of days in a month
static function hours( n : Float ) : FloatConvert a number of hours to a date-time
static function make( o : { seconds : Int, ms : Float, minutes : Int, hours : Int, days : Int } ) : FloatBuild a date-time from several components
static function minutes( n : Float ) : FloatConvert a number of minutes to a date-time
static function parse( t : Float ) : { seconds : Int, ms : Float, minutes : Int, hours : Int, days : Int }Separate a date-time into several components
static function seconds( n : Float ) : FloatConvert a number of seconds to a date-time
version #13549, modified 2012-04-12 22:32:41 by api