Package com.google.ical.values

Examples of com.google.ical.values.DateValueImpl


  public void testMonkey10() throws Exception {
    // another libical hanger
    runRecurrenceIteratorTest(
        "RRULE:FREQ=YEARLY;BYYEARDAY=1;BYMONTHDAY=1",
        new DateValueImpl(2006, 4, 27), PST, 5, null,
        "20060427,20070101,20080101,20090101,20100101,..."
        );
    runRecurrenceIteratorTest(
        "RRULE:FREQ=YEARLY;BYYEARDAY=1;BYMONTHDAY=2",
        new DateValueImpl(2006, 4, 27), PST, 5, null,
        "20060427"
        );
  }
View Full Code Here


    // 4, *6, 8, 9, 10, 14, *18, *22, 23, *24
    runRecurrenceIteratorTest(
        "RRULE:FREQ=YEARLY;INTERVAL=1"
        + ";BYMONTHDAY=8,-22,9,-26,-28,14,-10,-9,-14,-8,4,24,-14"
        + ";BYSETPOS=-1,-3,-4,-9",
        new DateValueImpl(2006, 4, 9), PST, 5, null,
        "20060409,20061206,20061218,20061222,20061224,..."
        );
  }
View Full Code Here

  public void testMonkey11WithAdvanceTo() throws Exception {
    runRecurrenceIteratorTest(
        "RRULE:FREQ=YEARLY;INTERVAL=1"
        + ";BYMONTHDAY=8,-22,9,-26,-28,14,-10,-9,-14,-8,4,24,-14"
        + ";BYSETPOS=-1,-3,-4,-9",
        new DateValueImpl(2006, 4, 9), PST, 5, new DateValueImpl(2006, 12, 20),
        /*"20060409,20061206,20061218,*/"20061222,20061224,"
        + "20071206,20071218,20071222,..."
        );
  }
View Full Code Here

  }

  public void testMonkey13() throws Exception {
    runRecurrenceIteratorTest( // 4, 5, 13, 29, 31
        "RRULE:FREQ=DAILY;WKST=SU;COUNT=4;INTERVAL=1;BYMONTHDAY=20,-20",
        new DateValueImpl(2006, 5, 19), PST, 5, null,
        "20060519,20060520,20060611,20060620,20060712"
        );
  }
View Full Code Here

  }

  public void testMonkey14() throws Exception {
    runRecurrenceIteratorTest( // 4, 5, 13, 29, 31
        "RRULE:FREQ=YEARLY;BYDAY=TH",
        new DateValueImpl(2006, 5, 6), PST, 4, null,
        "20060506,20060511,20060518,20060525,..."
        );
  }
View Full Code Here

        "RRULE:FREQ=YEARLY;UNTIL=20070414;INTERVAL=1;BYDAY=3SU;BYMONTH=4\n"
        + "\n"
        + "EXDATE;VALUE=DATE:20060416\n"
        + "\n"
        + "\n",
        new DateValueImpl(2006, 4, 16), PST, 4, null,
        ""
        );
  }
View Full Code Here

      DateTimeZone.forID("America/Los_Angeles");

  public void testDateValueToLocalDate() throws Exception {
    assertEquals(date(2006, 10, 13),
                 LocalDateIteratorFactory.dateValueToLocalDate(
                     new DateValueImpl(2006, 10, 13)));
    assertEquals(date(2006, 10, 13),
                 LocalDateIteratorFactory.dateValueToLocalDate(
                     new DateTimeValueImpl(2006, 10, 13, 12, 30, 1)));
  }
View Full Code Here

                 LocalDateIteratorFactory.dateValueToLocalDate(
                     new DateTimeValueImpl(2006, 10, 13, 12, 30, 1)));
  }

  public void testLocalDateToDateTimeValue() throws Exception {
    assertEquals(new DateValueImpl(2006, 10, 13),
                 LocalDateIteratorFactory.localDateToDateValue(
                     date(2006, 10, 13)));
  }
View Full Code Here

                 LocalDateIteratorFactory.localDateToDateValue(
                     date(2006, 10, 13)));
  }

  public void testConsistency() throws Exception {
    DateValue dv = new DateValueImpl(2006, 10, 13);
    assertEquals(dv, LocalDateIteratorFactory.localDateToDateValue(
                          LocalDateIteratorFactory.dateValueToLocalDate(dv)));
  }
View Full Code Here

    DateTimeZone.forID("America/Los_Angeles");

  public void testDateValueToDateTime() throws Exception {
    assertEquals(dateTime(2006, 10, 13, 0, 0, 0),
                 DateTimeIteratorFactory.dateValueToDateTime(
                     new DateValueImpl(2006, 10, 13)));
    assertEquals(dateTime(2006, 10, 13, 12, 30, 1),
                 DateTimeIteratorFactory.dateValueToDateTime(
                     new DateTimeValueImpl(2006, 10, 13, 12, 30, 1)));
  }
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.