public static function unix2ASDate(val:Number):Date
{
var d:Date=new Date(val * 1000);
return d;
}
将Date转换成UNIX时间戳
public static function UnixTimestamp(d : Date) : Number {
return Math.floor(d.getTime()/1000);
}
public static function unix2ASDate(val:Number):Date
{
var d:Date=new Date(val * 1000);
return d;
}
将Date转换成UNIX时间戳
public static function UnixTimestamp(d : Date) : Number {
return Math.floor(d.getTime()/1000);
}