lib/cronTrigger.js
function decodePeriodTime(map, timeStr, type){
  let times = timeStr.split('/');
  let min = Limit[type][0];
  let max = Limit[type][1];

  let remind = Number(times[0]);
  let period = Number(times[1]);

  if(period==0)
    return;

  for(let i = min; i <= max; i++){
    if(i%period == remind)
      map[i] = i;
  }
}
function decodePeriodTime(map, timeStr, type){
  let times = timeStr.split('/');
  let min = Limit[type][0];
  let max = Limit[type][1];

  let remind = Number(times[0]);
  let period = Number(times[1]);

  if(period==0)
    return;

  for(let i = min; i <= max; i++){
    if(i%period == remind)
      map[i] = i;
  }
}
function decodePeriodTime ( map , timeStr , type ) { let times = timeStr . split ( '/' ) ; let min = Limit [ type ] [ 0 ] ; let max = Limit [ type ] [ 1 ] ; let remind = Number ( times [ 0 ] ) ; let period = Number ( times [ 1 ] ) ; if ( period == 0 ) return ; for ( let i = min ; i <= max ; i ++ ) { if ( i % period == remind ) map [ i ] = i ; } }
Compute the period timer
Compute the period timer