function split_time(time){//将当前时间转换成时间搓 例如2013-09-11 12:12:12
var arr=time.split(" ");
var day=arr[0].split("-");
var hour=arr[1].split(":");
return Date.UTC(day[0],(day[1]-1),day[2],hour[0],hour[1],hour[2])/1000; //将当前时间转换成时间搓
}//
//时间搓得到实践
function changeTime(time){
var date = new Date(time);
var Y = date.getFullYear() + '-';
var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
var D = date.getDate() + ' ';
var H=date.getHours()+":";
var MIN=date.getMinutes()+":";
var S=date.getSeconds();
var newTime=Y+M+D+H+MIN+S;
console.log(newTime);
return newTime;
}