RecurrenceRule
Represents the iCalendar RFC 5545 standard recurrence rule to specify repeating events: https://tools.ietf.org/html/rfc5545#section-3.3.10
However, since date times are relative to the start time of a study, they are replaced with time spans representing elapsed time since the start of the study.
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RecurrenceRule.fromJson
RecurrenceRule.fromString
- String rrule
Initialize a RecurrenceRule based on a rrule string, as produced by toString.
UNTIL is read as milliseconds after the study start, not as a date. Unknown parts are ignored; frequency defaults to Frequency.DAILY.
RecurrenceRule
Create a rule repeating at frequency, every interval times, until end.
Properties
end
Specifies when, if ever, to stop repeating events. Default recurrence is forever.
frequency
Specifies the type of interval at which to repeat events, or multiples thereof.
interval
The interval at which frequency repeats. The default is 1. For example, with Frequency.DAILY, a value of "8" means every eight days.
Methods
toJson
toString
A valid RFC 5545 string representation of this recurrence rule, except when end is of type EndType.UNTIL. In that case, 'UNTIL' holds the total number of milliseconds which need to be added to a desired start date. 'UNTIL' should be reassigned to a calculated end date time, formatted using the RFC 5545 specifications: https://tools.ietf.org/html/rfc5545#section-3.3.5