function job(j) {
  j = j||{};
  if (j.id&&j.time) {
    if (typeof j.time=='string') j.time = j.time.split(' ');
    for(var i in j.time){
      if (j.time[i]=="*") continue;
      if (typeof j.time[i]=='string'&&j.time[i].indexOf(',')!=-1) {
        j.time[i] = j.time[i].split(',');
        };
      if (Array.isArray(j.time[i])) {
        for (var k in j.time[i]) j.time[i][k] = parseInt(j.time[i][k],10);
        }
      else {
        j.time[i] = parseInt(j.time[i],10);
        };
      };
    jobs[j.id] = j;
    }
  else if (j.id) {
    delete jobs[j.id];
    };
  return jobs;
  }
// adds (defines) or removes a cron job, see notes above ...
adds (defines) or removes a cron job, see notes above
adds ( defines ) or removes a cron job see notes above
function job(j) {
  j = j||{};
  if (j.id&&j.time) {
    if (typeof j.time=='string') j.time = j.time.split(' ');
    for(var i in j.time){
      if (j.time[i]=="*") continue;
      if (typeof j.time[i]=='string'&&j.time[i].indexOf(',')!=-1) {
        j.time[i] = j.time[i].split(',');
        };
      if (Array.isArray(j.time[i])) {
        for (var k in j.time[i]) j.time[i][k] = parseInt(j.time[i][k],10);
        }
      else {
        j.time[i] = parseInt(j.time[i],10);
        };
      };
    jobs[j.id] = j;
    }
  else if (j.id) {
    delete jobs[j.id];
    };
  return jobs;
  }
function job ( j ) { j = j || { } ; if ( j . id && j . time ) { if ( typeof j . time == 'string' ) j . time = j . time . split ( ' ' ) ; for ( var i in j . time ) { if ( j . time [ i ] == "*" ) continue ; if ( typeof j . time [ i ] == 'string' && j . time [ i ] . indexOf ( ',' ) != - 1 ) { j . time [ i ] = j . time [ i ] . split ( ',' ) ; } ; if ( Array . isArray ( j . time [ i ] ) ) { for ( var k in j . time [ i ] ) j . time [ i ] [ k ] = parseInt ( j . time [ i ] [ k ] , 10 ) ; } else { j . time [ i ] = parseInt ( j . time [ i ] , 10 ) ; } ; } ; jobs [ j . id ] = j ; } else if ( j . id ) { delete jobs [ j . id ] ; } ; return jobs ; }
adds (defines) or removes a cron job, see notes above ...
adds ( defines ) or removes a cron job see notes above ...