0.1.1 • Published 6 years ago

moment-rrule v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Moment RRule

A moment plugin to work with RFC 5545 recurrence rules

Note: This plugin is in development, if you want a more completed and tested package use rrule or moment-recur.

const moment = require('moment-rrule');

const start = moment('2018-01-01');
const rrule = start.rrule({ freq: 'monthly' });

const dates = rrule.between(start, moment('2018-12-01'));
// => [2018-01-01, 2018-02-01, ..., 2018-11-01, 2018-12-01]

For more examples see the test folder

License

MIT © Philipp Beck