Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opposite of dateutil.rrulestr() [duplicate]

I am trying to print a recurrence rule as a string specified by iCalendar format (see RFC 5545). Im using python dateutils, in particular dateutil.rrule to create the recurrence rule and I want to print this as a string like:

    "RRULE:FREQ=DAILY;COUNT=5"

Can anyone tell me if there is a method to achieve this?

I think I'm using the labix dateutils btw.

Many thanks!

like image 785
user1656817 Avatar asked Dec 28 '25 15:12

user1656817


1 Answers

There is no method or function in the python-dateutil package to do this. See this bug for a patch that may help: https://bugs.launchpad.net/dateutil/+bug/943512.

like image 144
Pedro Romano Avatar answered Dec 31 '25 05:12

Pedro Romano