javascriptで日時をunixtimeに変換

date = new Date("Thu, 06 Sep 2012 00:00:00 +0900");
unixtime = parseInt( date.getTime() / 1000 );