package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var dLocal:Date = new Date();
dLocal.setUTCFullYear(1970);
dLocal.setUTCMonth(0);
dLocal.setUTCDate(1);
dLocal.setUTCHours(0);
dLocal.setUTCMinutes(0);
dLocal.setUTCSeconds(0);
dLocal.setUTCMilliseconds(0);
//using the UTC() method, you could write the same thing in this way:
var nUTCDate:Number = Date.UTC(1970, 0, 1);
var dLocal:Date = new Date(nUTCDate);
}
}
}