A method I wrote myself
function split_time(time){/ /Convert the current time to time, for example, 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; //Convert the current time into time
}