Questions tagged [rrule]

A rrule is used in the iCal format to specify rules for recurring events.

A rrule is used in the iCal format to specify rules for recurring events. Its description can be found here: RFC 5545

241 questions
3
votes
0 answers

What is the proper way to update an RRule event in FullCalendar 4

I have a FullCalendar with one recurring event, initialized by a RRule string. You can see a demo on code sandbox The Calendar is made editable so you can drag an event to a different location. When the event is dropped, a function is called which…
Dany Dhondt
  • 881
  • 9
  • 27
3
votes
1 answer

RRule not setting correct time if dtstart is set

I try to make an rrule instance and then set the start date/time (dtstart) but the events get the wrong time. I initialize a rrule instance with a basis rrule string: RRULE:FREQ=WEEKLY;INTERVAL=1;WKST=MO;COUNT=20 I set the dtstart date in the…
Dany Dhondt
  • 881
  • 9
  • 27
3
votes
2 answers

Iterate over every quarter of the year

I am trying to iterate over every quarter of the year, this is what I have so far. now = datetime.now() first_day = datetime(year=now.year, month=1, day=1) print("--",first_day) hundredDaysLater = first_day - timedelta(days=100) for dt in…
Sharpless512
  • 3,062
  • 5
  • 35
  • 60
3
votes
1 answer

Is the rrule YEARLY broken for leap days?

Suppose I wanted to get when to celebrate birthdays with rrule. Then the frequency YEARLY works fine, except for leap days. There it is in fact only every 4 years. Is there any way to deal with it directly with rrule? from datetime import…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
3
votes
2 answers

RRULE for the weekend including the first sunday of a month

We have a event every year on the weekend (Fr-Su) that includes the first Sunday of June. How would I create a iCalendar Event that expresses these three days (whole day events)? Creating a rule for the first Sunday is easy. But for the Saturday and…
trapicki
  • 1,881
  • 1
  • 18
  • 24
3
votes
0 answers

Python: Displaying recurring events in ics files as multiple events

I am trying to parse an .ics (which I exported from Google calendar) using Python and the iCalendar package. My final goal is to produce a simple list of [time, event name] tuples. I am currently having an issue because I have a few recurring events…
sugy
  • 51
  • 6
3
votes
1 answer

PHP Monthly Recurrence

I'm Using PHP RRule for Recurrence in my Project. Here Daily and Weekly Recurrence are working fine. I don't know how to use monthly Recurrence in my scenario. Monthly scenario: First Sunday of every 2 Months Code: $dow=array("SU"); $rrule = new…
Maria Jeysingh Anbu
  • 3,164
  • 3
  • 34
  • 55
3
votes
1 answer

node RRule check if rule day is today

I am using 'rrule.js' library in node to parse my RRule. I would like to know if current day is same as rule day. It works on most cases but not all. I also use moment.js to compare. The issue is in "rule.after()". It should include the current day…
datau
  • 31
  • 3
3
votes
2 answers

RRULE explanaiton using BYDAY and BYSETPOS

I am trying to parse an RRULE and display what weeks in the month a recurrence event is valid for. I have looked at the RFC2445 doc (http://www.ietf.org/rfc/rfc2445.txt) and it's not that clear. I know for instance the rule: RRULE…
3
votes
1 answer

RRULE google-rfc-2445 with hour and seconds

I'm working with the implementation google-rfc-2445 (https://code.google.com/p/google-rfc-2445/) to generate the date which should be repeated following an event, not as a rule indicate (RRULE) that the repetition is done taking also note the time,…
Gustavo Salgado
  • 417
  • 4
  • 17
3
votes
2 answers

RRULE parsing in Postgresql

The goal: to generate a list of timestamps, each representing an event occurrance, from an RRULE string (i.e. FREQ=WEEKLY;INTERVAL=2;COUNT=8;WKST=SU;BYDAY=TU,TH) and a starting timestamp. Since these times will be changed at the whim of a user,…
obimod
  • 797
  • 10
  • 26
2
votes
0 answers

How to find conflicts in FullCalendar with rrule plugin?

I am using the FullCalendar Library and I use the rrule plugin the show recurring events. I assume this question can be more generic, but these are the tools that I am using. When I add a new event, how can I find out, if this will be in conflict…
PeterPan
  • 195
  • 2
  • 16
2
votes
0 answers

RRuleStrOptions.dtstart does not work when there is a exdate

I am using rrulestr from the rrule.js library to parse a set of rrule strings. I want to set the dtstart using the RRuleStrOptions and tried the following. const rrule = rrulestr( "RRULE:INTERVAL=1;FREQ=DAILY;COUNT=5", { dtstart: new…
2
votes
1 answer

How to find the Sunday before Thanksgiving in ical RRULE

I'm having difficulty writing an RRULE for the Sunday before thanksgiving, basically I want (RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=11;BYDAY=4TH) - 4 days
2
votes
0 answers

Compare RRule String if it is overlapping

I want to have a checker between two RRule string if they are overlapping.For example: RRUle String 1 : DTSTART:20200901T150000Z\nRRULE:FREQ=WEEKLY;COUNT=30;INTERVAL=1;WKST=MO RRUle String 2 :…
Jay Hyber
  • 321
  • 1
  • 4
  • 18