-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Construct a RSet from RFC string #26
Comments
Add the possibility to construct a RSet from a string Ref #26
Done. |
Is there any way to refactor RSet back to RFC string? |
At the moment no. The problem is that, according to the RFC, there can be only one DTSTART property for the entire set. However, a RSet object in this library is more flexible and allow combining multiple RRULE, each with a different DTSTART property. This cannot be expressed in a RFC-compliant way. So I don't know how to handle these cases. I'm open to suggestions. |
Ok, I'll try. If there is any new idea, I'll ping you back |
With the Python version (python dateutils), it is possible to parse a RFC string with multiple
RRULE
lines (orRDATE
,EXDATE
,EXRULE
) directly into a RSet. That could be interesting to have as well.This will require some refactoring of
RRule::parseRfcString()
to make it a factory method, or coding an actual factory method on top of it.The constructor would still only return a
RRule
since it is probably not possible and not advisable to have the constructor returns a different object.A RSet should also be able to be formatted into a RFC String with multiple lines.
If this is a feature that would be useful, leave a 👍
The text was updated successfully, but these errors were encountered: