function cronToChines (txt){
var r ="
未指定具体时间
(0 0 0 ? ? ?)"
if (txt) {
var regs = txt.split(' ');
}
var second = initDesc(regs[0], "second");
var min = initDesc(regs[1], "min");
var hour = initDesc(regs[2], "hour");
var day = initDescDay(regs[3]);
var month = initDescMonth(regs[4]);
var week = initDescWeek(regs[5]);
var year ="
每年
";
if (regs.length > 6) {
year = initDescYear(regs[6]);
}
return month+week+day+hour+min+second;
}
function initDesc(strVal, strid) {
var ary = null;
var v="";
if (strVal == "*") {
}else if (strVal == "?") {
} else
{
var s ="
秒
"
if(strid=="min"){
s ="
分
"
}else if(strid=="hour"){
s ="
点
"
}
ary = strVal.split(",");
if(ary.length>1){
v ="["+strVal+"]"+s
}else{
v =strVal+s
}
}
return v;
}
function initDescDay(strVal) {
var ary = null;