*/var time = (new Date()).getTime();
if(time_str) {//有日期段
var str = time_str.split('-');
if (3 === str.length) {
var month = parseInt(str[1]) - 0 - 1;//月份是從0開始的
var day = parseInt(str[2]) - 0;
if(fix_time) {//有時間段
var fix = fix_time.split(':');
if (3 === fix.length) {
var hour = parseInt( fix[0]) - 0;
var minute = parseInt(fix[1]) - 0;
var second = parseInt(fix[2]) - 0;
time = (new Date(yearInt(fix[2]) - 0;
time = (new Date(yearInt(fix[2]) - 0;
time = (new Date(year , month, day, hour, minute, second)).getTime();
}
} else {
time = (new Date(year, month, day)).getTime();
}
}
//getTime()獲取的時間戳到了毫秒數
time = time / 1000;//轉到到秒數