com. kelvinluck. util. DateFormatJust a very simple class to hold some functions for formating a Flash Date object. No need to create instances of the class - just use the static methods it provides... Version0.1.0 AuthorKelvin Luck < kelvin at kelvinluck dot com > Summary
secsToDate
Static function which converts a number of seconds into a Date object. Parameters
ReturnsThe converted Date object. _zeroPad
Simple function to make sure a number is the right amount of characters long - used internally by dateToIso. Parameters
TODOMaybe add a second parameter which is how many zeros you want to pad it with? |
Private constructor to prevent you creating instances of this class
private function DateFormat()
Static function which converts a given Date object into an ISO / MySQL Date Stamp format (e.g.
public static function dateToIso( date: Date ):String
Static function which converts a given ISO / MySQL Date Stamp Format String (e.g.
public static function isoToDate( dateStr: String ):Date
Static function which converts a number of seconds into a Date object.
public static function secsToDate( secs ):Date
Simple function to make sure a number is the right amount of characters long - used internally by dateToIso.
private static function _zeroPad( value: Number ):String