Package com.google.ical.values

Examples of com.google.ical.values.PeriodValue


  public String goldenDateRange(String dateStr) throws Exception {
    return goldenDateRange(dateStr, 1);
  }

  public String goldenDateRange(String dateStr, int interval) throws Exception {
    PeriodValue period = IcalParseUtil.parsePeriodValue(dateStr);
    DTBuilder b = new DTBuilder(period.start());
    StringBuilder out = new StringBuilder();
    while (true) {
      DateValue d = b.toDate();
      if (d.compareTo(period.end()) > 0) { break; }
      if (0 != out.length()) { out.append(','); }
      out.append(d);
      b.day += interval;
    }
    return out.toString();
View Full Code Here

TOP

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

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.