recur.txt 12.7 KB
Newer Older
Nicolas Mora's avatar
Nicolas Mora committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652
BEGIN:VEVENT 
DESCRIPTION 
 :Repeat every tuesday and wednesday starting Tue 2nd April 2002
RRULE
 :FREQ=WEEKLY;INTERVAL=1;COUNT=6;BYDAY=TU,WE
DTSTART
 :20020402T114500
DTEND
 :20020402T124500
X-EXPECT-NUMEVENTS: 6
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Repeat every thursday starting Tue 2nd April 2002 
RRULE 
 :FREQ=WEEKLY;INTERVAL=1;COUNT=6;BYDAY=TH 
DTSTART 
 :20020402T114500 
DTEND 
 :20020402T124500 
X-EXPECT-NUMEVENTS: 6 
END:VEVENT 


BEGIN:VEVENT
DESCRIPTION
 :Every year on the same day\, forever
RRULE
 :FREQ=YEARLY;INTERVAL=1
DTSTART
 :19990201T172000
DTEND
 :19990201T182000
X-EXPECT-NUMEVENTS: 39
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Monday of week number 20 (where the default start of the week is Monday)\, 
 forever:
DTSTART
 ;TZID=America/Los_Angeles
 :19970512T090000
RRULE
 :FREQ=YEARLY;INTERVAL=1;COUNT=10;BYDAY=MO;BYWEEKNO=20
X-EXPECT-NUMEVENTS: 10
END:VEVENT


BEGIN:VEVENT
DESCRIPTION
 : Once a Year
DTSTART
 ;TZID=America/Los_Angeles
 :20010205T090000
RRULE
 :FREQ=YEARLY;INTERVAL=1
X-EXPECT-NUMEVENTS: 37
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Recur every sunday and tuesday
RRULE
 :FREQ=WEEKLY;COUNT=10;INTERVAL=1;BYDAY=SU,TU
DTSTART
 :20011216T192500
DTEND
 :20011216T202500
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every first tuesday of the month
RRULE
 :FREQ=MONTHLY;INTERVAL=1;COUNT=3;BYDAY=1TU
DTSTART
 :20011204T153500
DTEND
 :20011204T163500
X-EXPECT-NUMEVENTS: 3
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Daily for 10 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=DAILY;COUNT=10;INTERVAL=1
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Daily until December 24\, 1997:
DTSTART
 ;TZID=America/Los_Angeles
 :19971215T090000
RRULE
 :FREQ=DAILY;UNTIL=19971224T000000Z;INTERVAL=1
X-EXPECT-NUMEVENTS: 9
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every other day - forever:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=DAILY;COUNT=10;INTERVAL=2
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every 10 days\, 5 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=DAILY;COUNT=5;INTERVAL=10
X-EXPECT-NUMEVENTS: 5
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Daily for 10 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=DAILY;COUNT=10;INTERVAL=1
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every day in January\, for 3 years
DTSTART
 ;TZID=America/Los_Angeles
 :19980101T090000
RRULE
 :FREQ=YEARLY;UNTIL=20000131T090000Z;INTERVAL=1;BYDAY=SU,MO,TU,WE,TH,FR,SA;BYMONTH=1
X-EXPECT-NUMEVENTS: 93
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Everyday in January\, for 3 years:
DTSTART
 ;TZID=America/Los_Angeles
 :19980101T090000
RRULE
 :FREQ=DAILY;UNTIL=20000131T090000Z;INTERVAL=1;BYMONTH=1
X-EXPECT-NUMEVENTS: 93
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Repeat every tuesday and wednesday starting Tue 2nd April 2002
RRULE
 :FREQ=WEEKLY;INTERVAL=1;COUNT=6;BYDAY=TU,WE
DTSTART
 :20020402T114500
DTEND
 :20020402T124500
X-EXPECT-NUMEVENTS: 6
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every Day start the first day in  January\, except saturday and sunday. This should be up to March.
RRULE
 :FREQ=DAILY;COUNT=50;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR
DTSTART
 :20020101T090000Z
X-EXPECT-NUMEVENTS: 50 
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every Day in January\, but only in Tuesday\, Wednesday and Thursday 
RRULE
 :FREQ=DAILY;UNTIL=20020120T090000Z;INTERVAL=1;BYDAY=TU,WE,TH
DTSTART
 :20020101T090000Z
X-EXPECT-NUMEVENTS: 9
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every Day in January\, except saturday and sunday. This is MS Outlook every weekday case.
RRULE
 :FREQ=DAILY;UNTIL=20020120T090000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;WKST=SU
DTSTART
 :20020101T090000Z
X-EXPECT-NUMEVENTS: 14
END:VEVENT


BEGIN:VEVENT
DESCRIPTION
 :Weekly for 10 occurrences
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=WEEKLY;COUNT=10;INTERVAL=1
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Weekly until December 24\, 1997
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=WEEKLY;UNTIL=19971224T000000Z;INTERVAL=1
X-EXPECT-NUMEVENTS: 17
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every other week - 10 times:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=WEEKLY;INTERVAL=2;COUNT=10
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Weekly on Tuesday and Thursday for 5 weeks:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=WEEKLY;UNTIL=19971007T000000Z;INTERVAL=1;BYDAY=TU,TH
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Weekly on Tuesday and Thursday for 5 weeks:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=WEEKLY;COUNT=10;INTERVAL=1;BYDAY=TU,TH
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every other week on Monday\, Wednesday and Friday until December 
 24\,1997\, but starting on Tuesday\, September 2\, 1997:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=WEEKLY;INTERVAL=2;UNTIL=19971224T000000Z;BYDAY=MO,WE,FR;WKST=SU
X-EXPECT-NUMEVENTS: 24
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every other week on Tuesday and Thursday\, for 8 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=WEEKLY;COUNT=8;INTERVAL=2;BYDAY=TU,TH
X-EXPECT-NUMEVENTS: 8
END:VEVENT


BEGIN:VEVENT
DESCRIPTION
 :Monthly on the 1st Friday for ten occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970905T090000
RRULE
 :FREQ=MONTHLY;COUNT=10;INTERVAL=1;BYDAY=FR
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Monthly on the 1st Friday until December 24\, 1997:
DTSTART
 ;TZID=America/Los_Angeles
 :19970905T090000
RRULE
 :FREQ=MONTHLY;UNTIL=19971224T000000Z;INTERVAL=1;BYDAY=1FR
X-EXPECT-NUMEVENTS: 4
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every other month on the 1st and last Sunday of the month for 10 occurrences
 :
DTSTART
 ;TZID=America/Los_Angeles
 :19970907T090000
RRULE
 :FREQ=MONTHLY;INTERVAL=2;COUNT=10;BYDAY=1SU,-1SU
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Monthly on the second to last Monday of the month for 6 months:
DTSTART
 ;TZID=America/Los_Angeles
 :19970922T090000
RRULE
 :FREQ=MONTHLY;COUNT=6;INTERVAL=1;BYDAY=-2MO
X-EXPECT-NUMEVENTS: 6
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Monthly on the third to the last day of the month\, forever:
DTSTART
 ;TZID=America/Los_Angeles
 :19970928T090000
RRULE
 :FREQ=MONTHLY;INTERVAL=1;COUNT=10;BYMONTHDAY=-3
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Monthly on the 2nd and 15th of the month for 10 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=MONTHLY;COUNT=10;INTERVAL=1;BYMONTHDAY=2,15
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Monthly on the first and last day of the month for 10 occurrences:\n
DTSTART
 ;TZID=America/Los_Angeles
 :19970930T090000
RRULE
 :FREQ=MONTHLY;COUNT=10;INTERVAL=1;BYMONTHDAY=1,-1
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every 18 months on the 10th thru 15th of the month for 10 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970910T090000
RRULE
 :FREQ=MONTHLY;COUNT=10;INTERVAL=18;BYMONTHDAY=10,11,12,13,14,15
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every Tuesday\, every other month:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=MONTHLY;INTERVAL=2;COUNT=10;BYDAY=TU
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Yearly in June and July for 10 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970610T090000
RRULE
 :FREQ=YEARLY;COUNT=10;INTERVAL=1;BYMONTH=6,7
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every other year on January\, February\, and March for 10 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970310T090000
RRULE
 :FREQ=YEARLY;COUNT=10;INTERVAL=2;BYMONTH=1,2,3
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every 3rd year on the 1st\, 100th and 200th day for 10 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970101T090000
RRULE
 :FREQ=YEARLY;COUNT=10;INTERVAL=3;BYYEARDAY=1,100,200
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every 20th Monday of the year\, forever:
DTSTART
 ;TZID=America/Los_Angeles
 :19970519T090000
RRULE
 :FREQ=YEARLY;INTERVAL=1;COUNT=10;BYDAY=20MO
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Monday of week number 20 (where the default start of the week is Monday)\, 
 forever:
DTSTART
 ;TZID=America/Los_Angeles
 :19970512T090000
RRULE
 :FREQ=YEARLY;INTERVAL=1;COUNT=10;BYDAY=MO;BYWEEKNO=20
X-EXPECT-NUMEVENTS: 10
END:VEVENT


BEGIN:VEVENT
DESCRIPTION
 :Every Thursday in March\, forever:
DTSTART
 ;TZID=America/Los_Angeles
 :19970313T090000
RRULE
 :FREQ=YEARLY;INTERVAL=1;COUNT=10;BYDAY=TH;BYMONTH=3
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every Thursday\, but only during June\, July\, and August\, forever:
DTSTART
 ;TZID=America/Los_Angeles
 :19970605T090000
RRULE
 :FREQ=YEARLY;INTERVAL=1;COUNT=10;BYDAY=TH;BYMONTH=6,7,8
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every Friday the 13th\, forever:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=MONTHLY;INTERVAL=1;COUNT=10;BYDAY=FR;BYMONTHDAY=13
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :The first Saturday that follows the first Sunday of the month\,
DTSTART
 ;TZID=America/Los_Angeles
 :19970913T090000
RRULE
 :FREQ=MONTHLY;INTERVAL=1;COUNT=10;BYDAY=SA;BYMONTHDAY=7,8,9,10,11,12,13
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every four years\, the first Tuesday after a Monday in November\, 
 forever (U.S. Presidential Election day):
DTSTART
 ;TZID=America/Los_Angeles
 :19961105T090000
RRULE
 :FREQ=YEARLY;INTERVAL=4;COUNT=10;BYDAY=TU;BYMONTHDAY=2,3,4,5,6,7,8;BYMONTH=11
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :The 3rd instance into the month of one of Tuesday\, Wednesday or 
 Thursday\, for the next 3 months:
DTSTART
 ;TZID=America/Los_Angeles
 :19970904T090000
RRULE
 :FREQ=MONTHLY;COUNT=3;INTERVAL=1;BYDAY=TU,WE,TH;BYSETPOS=3
X-EXPECT-NUMEVENTS: 3
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :The 2nd to last weekday of the month:
DTSTART
 ;TZID=America/Los_Angeles
 :19970929T090000
RRULE
 :FREQ=MONTHLY;INTERVAL=1;COUNT=10;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-2
X-EXPECT-NUMEVENTS: 10
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every 3 hours from 9:00 AM to 5:00 PM on a specific day:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=HOURLY;UNTIL=19970902T170000Z;INTERVAL=3
X-EXPECT-NUMEVENTS: 3
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every 15 minutes for 6 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=MINUTELY;COUNT=6;INTERVAL=15
X-EXPECT-NUMEVENTS: 6
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every hour and a half for 4 occurrences:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=MINUTELY;COUNT=4;INTERVAL=90
X-EXPECT-NUMEVENTS: 4
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every 20 minutes from 9:00 AM to 4:40 PM every day:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=DAILY;COUNT=20;INTERVAL=1;BYMINUTE=0,20,40;BYHOUR=9,10,11,12,13,14,15,16
X-EXPECT-NUMEVENTS: 20
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every 20 minutes from 9:00 AM to 4:40 PM every day:
DTSTART
 ;TZID=America/Los_Angeles
 :19970902T090000
RRULE
 :FREQ=MINUTELY;COUNT=20;INTERVAL=20;BYHOUR=9,10,11,12,13,14,15,16
X-EXPECT-NUMEVENTS: 20
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :An example where the days generated makes a difference because of 
 WKST:
DTSTART
 ;TZID=America/Los_Angeles
 :19970805T090000
RRULE
 :FREQ=WEEKLY;COUNT=4;INTERVAL=2;BYDAY=TU,SU
X-EXPECT-NUMEVENTS: 4
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :An example where the days generated makes a difference because of 
 WKST. Changing only WKST from MO to SU yields different results...  
DTSTART
 ;TZID=America/Los_Angeles
 :19970805T090000
RRULE
 :FREQ=WEEKLY;COUNT=4;INTERVAL=2;BYDAY=TU,SU
X-EXPECT-NUMEVENTS: 4
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Repeat every tuesday and wednesday starting 2 April 2002
RRULE
 :FREQ=WEEKLY;INTERVAL=1;COUNT=6;BYDAY=TU,WE
DTSTART
 :20020402T114500
X-EXPECT-NUMEVENTS: 6
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Use count=1 to repeat zero times.
RRULE
 :FREQ=DAILY;COUNT=1
DTSTART
 :20020402T114500
X-EXPECT-NUMEVENTS: 1
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Use EXDATE to eliminate the base event
RRULE
 :FREQ=DAILY;COUNT=1
DTSTART
 :20020402T114500Z
EXDATE
 :20020402T114500Z
X-EXPECT-NUMEVENTS: 0
END:VEVENT

BEGIN:VEVENT
DESCRIPTION
 :Every Day in January\, except saturday and sunday\, using 2 EXRULEs. (NOT IMPLEMENTED)
RRULE
 :FREQ=DAILY;INTERVAL=1;UNTIL=20020201T000000Z
EXRULE
 :FREQ=WEEKLY;INTERVAL=1;UNTIL=20020201T000000Z;BYDAY=SU
EXRULE
 :FREQ=WEEKLY;INTERVAL=1;UNTIL=20020201T000000Z;BYDAY=SA
DTSTART
 :20020101T090000Z
X-EXPECT-NUMEVENTS: 23
END:VEVENT

;BEGIN:VEVENT
;DESCRIPTION:Try to choke the parser with an invalid month
;RRULE:FREQ=YEARLY;BYDAY=SU;BYMONTH=0;COUNT=100
;DTSTART:20020101T090000Z
;X-EXPECT-NUMEVENTS: 100
;END:VEVENT