43. my $date = $dt_parser->parse_datetime(
"$_->[2] $_->[1] $curr_year"
);
# If the month number of this event is less
# than the current month number then we've
# gone to the next year. Increment the year
# number and re-calculate.
if ($date->mon < $curr_mon) {
++$curr_year;
$date = $dt_parser→parse_datetime(
"$_->[2] $_->[1] $curr_year"
);
}
44. # Tower Bridge web site occasionally
# has duplicates
next if $seen{$date->epoch}++;
66. This property specifies the
text value that uniquely
identifies the
"VTIMEZONE" calendar
component in the scope of
an iCalendar object.
67. If present, the
"VTIMEZONE" calendar
component defines the set of
Standard Time and Daylight
Saving Time observances (or
rules) for a particular time
zone for a given interval of
time.
70. This module is not yet useful,
because every time zone
declaration needs to contain
at least one STANDARD or
DAYLIGHT component, and
these have not yet been
implemented.
74. DATE WITH LOCAL TIME
The date with local time form is simply
a DATE-TIME value that does not
contain the UTC designator nor does it
reference a time zone. For example, the
following represents January 18, 1998,
at 11 PM:
19980118T230000
75. sub dt2ical {
my ($dt) = @_;
return $dt->ymd('') . 'T' .
$dt->hms('');
}