Package com.google.ical.util

Examples of com.google.ical.util.DTBuilder.toDate()


  static DateValue nextWeekStart(DateValue d, Weekday wkst) {
    DTBuilder builder = new DTBuilder(d);
    builder.day += (7 - ((7 + (Weekday.valueOf(d).javaDayNum
                               - wkst.javaDayNum)) % 7))
                   % 7;
    return builder.toDate();
  }

  /** returns a sorted unique copy of ints. */
  static int[] uniquify(int[] ints) {
    return uniquify(ints, 0, ints.length);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.