var parser = require('./');

var start = new Date();
var end = new Date('Tue, 31 Mar 2015 12:00:00 BRT');

console.log(end);
var options = {
  currentDate: start,
  endDate: end,
  iterator: false
};

try{
  var interval = parser.parseExpression('*/2 * * * *', options);

  while(true){
    try{
      //console.log(interval.next());

    } catch(e){
      break;
    }
  }

}catch(err){
  console.log(err.message);
}