testing timeparsing
forked from Chapter 7 Example 3 (diff: 4)
ActionScript3 source code
/**
* Copyright tjoen ( http://wonderfl.net/user/tjoen )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/cdjh
*/
// forked from actionscriptbible's Chapter 7 Example 3
package {
import com.actionscriptbible.Example;
public class ch7ex3 extends Example {
public function ch7ex3() {
var d:Date = new Date(2010, 11, 9, 21, 0, 0, 0);
//at the stroke of midnight Jan. 1, 1970,
//what time was it in YOUR timezone?
trace(d); // Wed Dec 31 16:00:00 GMT-0800 1969 (that's in Los Angeles.)
//OR: when the clock struck midnight on Jan. 1, 1970 in your home,
//what epoch time was that?
//trace(Date.parse("11/09/1975")); // 28800000 (in LA)
}
}
}