dh_ackergaul
vor 4 Tagen bb80cdf5a6157ca1f3a276e12e9faae9a4739cb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
}