Finding occurrences seems slow

18 zobrazení
Přeskočit na první nepřečtenou zprávu

Jonas@Stixy

nepřečteno,
11. 1. 2011 6:16:4411.01.11
komu: RiCal
If I try this:

ical_str = "BEGIN:VEVENT
DTEND;TZID=Europe/Stockholm;VALUE=DATE-TIME:20001207T141100
DTSTART;TZID=Europe/Stockholm;VALUE=DATE-TIME:20001207T141000
RRULE:FREQ=DAILY;INTERVAL=1
END:VEVENT"

event = RiCal.parse_string(ical_str)
event.first.occurrences({:count => 1, :starting => Time.now})

It takes about 5 seconds to find the occurrence. Is there a better way
of doing this? Am I doing something wrong?

Regards,
/jonas
Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv