1Data::ICal::Entry::EvenUts(e3r)Contributed Perl DocumentDaattiao:n:ICal::Entry::Event(3)
2
3
4
6 Data::ICal::Entry::Event - Represents an event in an iCalendar file
7
9 my $vevent = Data::ICal::Entry::Event->new();
10 $vevent->add_properties(
11 summary => "my party",
12 description => "I'll cry if I want to",
13 # Dat*e*::ICal is not a typo here
14 dtstart => Date::ICal->new( epoch => time )->ical,
15 );
16
17 $calendar->add_entry($vevent);
18
19 $vevent->add_entry($alarm);
20
22 A Data::ICal::Entry::Event object represents a single event in an
23 iCalendar file. (Note that the iCalendar RFC refers to entries as
24 "components".) It is a subclass of Data::ICal::Entry and accepts all
25 of its methods.
26
28 ical_entry_type
29 Returns "VEVENT", its iCalendar entry name.
30
31 optional_unique_properties
32 According to the iCalendar standard, the following properties may be
33 specified at most one time for an event:
34
35 class created description dtstart geo
36 last-modified location organizer priority
37 dtstamp sequence status summary transp
38 uid url recurrence-id
39
40 In addition, "dtend" and "duration" may be specified at most once each,
41 but not both in the same entry (though this restriction is not
42 enforced).
43
44 optional_repeatable_properties
45 According to the iCalendar standard, the following properties may be
46 specified any number of times for an event:
47
48 attach attendee categories comment
49 contact exdate exrule request-status related-to
50 resources rdate rrule
51
53 Data::ICal::DateTime
54 For date parsing and formatting, including denoting "all day"
55 events, considering using this module. Because it's a "mix in", you
56 can still use all the methods here as well as the new date handling
57 methods it defines.
58
60 Jesse Vincent "<jesse@bestpractical.com>" with David Glasser, Simon
61 Wistow, and Alex Vandiver
62
64 Copyright (c) 2005 - 2009, Best Practical Solutions, LLC. All rights
65 reserved.
66
67 This module is free software; you can redistribute it and/or modify it
68 under the same terms as Perl itself. See perlartistic.
69
71 BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
72 FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
73 WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
74 PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
75 EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
76 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
77 ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
78 YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
79 NECESSARY SERVICING, REPAIR, OR CORRECTION.
80
81 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
82 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
83 REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
84 TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
85 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
86 SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
87 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
88 FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
89 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
90 DAMAGES.
91
92
93
94perl v5.12.0 2009-07-10 Data::ICal::Entry::Event(3)