Hi,
I have a problem with this expression (Second wednesday of every month, at
20:00) that I'm using with DateTime::Format::ICal-parse_recurrence() :
FREQ=MONTHLY;BYDAY=2WE;DTSTART=20090201T20Z;COUNT=12
Here is the test case:
perl -MDateTime::Format::ICal -e
This is an intentional feature - DTSTART is not an RRULE component.
An iCalendar text looks like:
DTSTART:19870405T02
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
reference: http://www.ietf.org/rfc/rfc2445.txt
Flávio S. Glock
2009/2/18 Olivier Mengué olivier.men...@gmail.com:
Hi,
I
A test script illustrating the error would be handy. Also, please
send this to [EMAIL PROTECTED]
Thanks,
-dave
Sure.
To use the test script you will have to save the attached in the same
directory as the test script.
Here's the test script (test_ical.pl):
#!/usr/local/bin/perl
Matt Sisk wrote:
At issue seems to be that the parser does not remove the 'RRULE:' part
from the beginning of a rule before splitting on semicolons.
Fixed in CVS.
Also, while we're at it, when we return these values can we either
return a scalar when there is only one result (or make use
DateTime::Format::ICal 0.08 is not passing the dog food test and
successfully parsing its own results. For example:
$DTFI = DateTime::Format::ICal;
$r = $DTFI-parse_recurrence(recurrence = 'FREQ=DAILY');
$str = ($DTFI-format_recurrence($r))[0];
print $str\n;
produces 'RRULE:FREQ=DAILY'
On Sat, 28 Jun 2003 [EMAIL PROTECTED] wrote:
# Failed test (t/01datetime.t at line 87)
# got: 'TZID=-0100:19000101T15'
# expected: '19000101T16Z'
# Looks like you failed 1 tests of 37.
my $dt = DateTime-new(
year = 1900, hour = 15, time_zone = '-0100' );