Show
Ignore:
Timestamp:
10/16/07 01:34:11 (15 months ago)
Author:
ogawa
Message:

Add '--output' option to specify the output file.
Add '--compat-google-calendar' option to choose whether RRULE would be compatible with Google Calendar or not.
Support more complicated RRULEs. Thanks for Higuchi-san. (http://higuchi.com/item/394)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cybozu2ical/trunk/lib/WWW/CybozuOffice6/Calendar.pm

    r379 r446  
    8787                $param{exdates} = \@exdates; 
    8888            } 
     89            my $freq = $param{freq}; 
     90            if ($freq =~ /^[1-5]$/) { 
     91                $param{freq} = 'm'; 
     92                my @week_str = ('SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'); 
     93                $param{freq_value} = $freq . $week_str[$param{freq_value}]; 
     94            } 
    8995            $item = WWW::CybozuOffice6::Calendar::RecurrentEvent->new(%param); 
    9096        }