5ヶ月ごとにスケジュールを作成したい。だから私はこれを試します:
var startDate = new Date("2015-07-13T15:58:30.546Z");
var s = later.parse.recur().every(5).month();
s.on(startDate.getDate()).dayOfMonth();
var nextDates = later.schedule(s).next(3, startDate);
console.log(nextDates);
私はこの結果が得られることを期待しています:
[ Fri Jul 13 2015 02:00:00 GMT+0200 (IST),
Wed Dec 13 2016 02:00:00 GMT+0200 (IST),
Mon May 13 2016 03:00:00 GMT+0300 (IDT) ]
しかし、上記のコードは次の結果を生成します。
[ Sun Nov 13 2015 02:00:00 GMT+0200 (IST),
Fri Jan 13 2016 02:00:00 GMT+0200 (IST),
Wed Jun 13 2016 03:00:00 GMT+0300 (IDT) ]
私は何が欠けていますか?