Data::ICal now comes with convenience methods that simplify the use of DateTime. This feature streamlines the process and makes it easier to work with the Data::ICal module.
To start, users can create a new instance of the Data::ICal class using the filename parameter. Once the calendar is loaded, users can then use DateTime to create two dates and calculate the date range between the two dates using DateTime::Span->from_datetimes.
On the loaded calendar, the events method can be used to retrieve all VEVENTS, just those within a given week, or a week with long events exploded into days.
For adding new events, Data::ICal::Entry::Event can be used with start and end parameters taking in DateTime objects. Duration, recurrence, all_day, period, rdate, exrule, and exdate properties are also available and can be retrieved using their respective methods.
For recurring events, users can explode events within a given span and set the granularity of events with duration greater than a week using the explode method. Additionally, the is_in method can be used to check whether an event falls within a Set, Span, or SetSpan. Finally, new events can be added to the loaded calendar with the add method.
Overall, Data::ICal::DateTime provides a convenient and robust way of integrating Data::ICal with DateTime for managing events.
Version 0.7: N/A