jkbrzt / rrule

JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
https://jkbrzt.github.io/rrule
Other
3.28k stars 510 forks source link

How to define intervals of time ? #503

Open matoeilD opened 2 years ago

matoeilD commented 2 years ago

What is the syntax to describe an event with an interval of time? For example ,

from April 6 to April 12 2022, between 10:00 and 12:00

Is it possible to set it using the online tool ? https://jakubroztocil.github.io/rrule/

sunshineo commented 2 years ago

I found this closed issue https://github.com/jakubroztocil/rrule/issues/115 So this project is only for the Recurrence Rule (thus the name rrule) https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 You are looking for duration which will be https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.6 In the closed issue above, someone provided https://github.com/remotehour/rrule-duration