Package com.google.ical.values

Examples of com.google.ical.values.RRule


  private static final DateValue DT_START = new DateValueImpl(2006, 4, 3);
  private static final DateValue T0 = new DateValueImpl(2006, 8, 3);

  void runOne() throws Exception {
    for (String rdata : RECURRENCE_RULES) {
      RRule rrule = new RRule(rdata);
      RecurrenceIterator iter =
        RecurrenceIteratorFactory.createRecurrenceIterator(
            rrule, DT_START, TimeUtils.utcTimezone());
      iter.advanceTo(T0);
      for (int k = 20; iter.hasNext() && --k >= 0;) {
View Full Code Here


    int nbad = 0;
    for (int i = 0; i < lines.length; ++i) {
      String line = lines[i].trim();
      try {
        if (RULE.matcher(line).find()) {
          out[i] = new RRule(line);
        } else if (DATE.matcher(line).find()) {
          out[i] = new RDateList(line, tzid);
        } else {
          throw new ParseException(lines[i], i);
        }
View Full Code Here

TOP

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

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.