Package com.google.ical.values

Examples of com.google.ical.values.DateValueImpl


        "\r\n\n \r\n"
        // every weekday
        + "RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR\n\n"
        // except every second thursday
        + "EXRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=TH\n",
        new DateValueImpl(2006, 4, 11), PST, 30, null,
        "20060411,20060412,20060414,"
        + "20060417,20060418,20060419,20060420,20060421,"
        + "20060424,20060425,20060426,20060428,"
        + "20060501,20060502,20060503,20060504,20060505,"
        + "20060508,20060509,20060510,20060512,"
View Full Code Here


        "\r\n\n \r\n"
        // every weekday
        + "RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR\n\n"
        // except every second thursday
        + "EXRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=TH\n",
        new DateValueImpl(2006, 4, 11), PST, 30, new DateValueImpl(2006, 4, 20),
        /*"20060411,20060412,20060414,"
        + "20060417,20060418,20060419,*/"20060420,20060421,"
        + "20060424,20060425,20060426,20060428,"
        + "20060501,20060502,20060503,20060504,20060505,"
        + "20060508,20060509,20060510,20060512,"
View Full Code Here

        "\r\n\n \r\n"
        // every weekday
        + "RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;UNTIL=20060520\n\n"
        // except every second thursday
        + "EXRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=TH\n",
        new DateValueImpl(2006, 4, 11), PST, 30, null,
        "20060411,20060412,20060414,"
        + "20060417,20060418,20060419,20060420,20060421,"
        + "20060424,20060425,20060426,20060428,"
        + "20060501,20060502,20060503,20060504,20060505,"
        + "20060508,20060509,20060510,20060512,"
View Full Code Here

        "\r\n\n \r\n"
        // every weekday
        + "RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;UNTIL=20060520\n\n"
        // except every second thursday
        + "EXRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=TH\n",
        new DateValueImpl(2006, 4, 11), PST, 30, new DateValueImpl(2006, 5, 4),
        /*"20060411,20060412,20060414,"
        + "20060417,20060418,20060419,20060420,20060421,"
        + "20060424,20060425,20060426,20060428,"
        + "20060501,20060502,20060503,*/"20060504,20060505,"
        + "20060508,20060509,20060510,20060512,"
View Full Code Here

    runRecurrenceIteratorTest(
        "RDATE:20060411,20060412,20060414,20060417,20060418,\r\n"
          + " 20060419,20060420,20060421\r\n"
        + "EXDATE:20060411,20060412,20060414,20060417,20060418,\r\n"
          + " 20060419,20060420,20060421\r\n",
        new DateValueImpl(2006, 4, 11), PST, 30, null,
        ""
        );
    runRecurrenceIteratorTest(
        "RDATE:20060411,20060412,20060414,20060417,20060418,\r\n"
          + " 20060419,20060420,20060421\r\n"
        + "EXDATE:20060411,20060412,20060414,20060417,20060418,\r\n"
          + " 20060419,20060420,20060421\r\n",
        new DateValueImpl(2006, 4, 11), PST, 30, new DateValueImpl(2006, 4, 14),
        ""
        );
  }
View Full Code Here

  // monkey tests
  public void testMonkey1() throws Exception {
    runRecurrenceIteratorTest(
        "RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTH=9,5,3",
        new DateValueImpl(2006, 5, 3), PST, 6, null,
        "20060503,20060903,20070303,20070503,20070903,20080303,...");
  }
View Full Code Here

  }

  public void testMonkey2() throws Exception {
    runRecurrenceIteratorTest(
        "RRULE:FREQ=YEARLY;COUNT=19;INTERVAL=1;BYMONTH=1,11,6;BYSETPOS=7,-4,6",
        new DateValueImpl(2006, 4, 22), PST, 6, null,
        "20060422");
  }
View Full Code Here

  public void testMonkey4() throws Exception {
    runRecurrenceIteratorTest(
        "RRULE:FREQ=MONTHLY;WKST=SU;INTERVAL=1;"
        + "BYMONTHDAY=31,-16,23,-4,-19,-23,6,-4,-10,1,10",
        new DateValueImpl(2006, 5, 1), PST, 12, null,
        "20060501,20060506,20060509,20060510,20060513,20060516,"
        + "20060522,20060523,20060528,20060531,20060601,20060606,...");
  }
View Full Code Here

  public void testMonkey8() throws Exception {
    // I don't know which side this failing on?
    runRecurrenceIteratorTest(
        "RRULE:FREQ=WEEKLY;COUNT=18;BYMONTH=7,11",
        new DateValueImpl(2006, 4, 27), PST, 20, null,
        // doesn't count towards count since not in july or november
        "20060427,"
        // all the Thursdays in July and November
        + "20060706,20060713,20060720,20060727,20061102,20061109,"
        + "20061116,20061123,20061130,20070705,20070712,20070719,"
View Full Code Here

  public void testMonkey9() throws Exception {
    // another libical crasher
    runRecurrenceIteratorTest(
        "RRULE:FREQ=MONTHLY;WKST=SU;INTERVAL=1;BYWEEKNO=5,-5;BYSECOND=0",
        new DateValueImpl(2006, 4, 27), PST, 5, null,
        // all the 27ths of the month.  BYWEEKNO ignores since not yearly
        "20060427,20060527,20060627,20060727,20060827,..."
        );
  }
View Full Code Here

TOP

Related Classes of com.google.ical.values.DateValueImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.