// Path: src/main/java/com/googlecode/android/widgets/DateSlider/TimeObject.java
// public class TimeObject {
//     public final CharSequence text;
//     public final long startTime, endTime;
//     public TimeObject(final CharSequence text, final long startTime, final long endTime) {
//         this.text = text;
//         this.startTime = startTime;
//         this.endTime = endTime;
//     }
// }


import java.util.Calendar;
import com.googlecode.android.widgets.DateSlider.TimeObject;
package com.googlecode.android.widgets.DateSlider.labeler;



/**
 * A bunch of static helpers for manipulating dates and times. There are two
 * types of methods -- add*() methods that add a number of units to a time
 * and return the result as a Calendar, and get*() objects that take a
 * Calendar object and a format string and produce the appropriate TimeObject.
 */
class Util {
    public static Calendar addYears(long time, int years) {
        return add(time, years, Calendar.YEAR);
    }

    public static Calendar addMonths(long time, int months) {
        return add(time, months, Calendar.MONTH);
    }

    public static Calendar addWeeks(long time, int days) {
        return add(time, days, Calendar.WEEK_OF_YEAR);
    }

    public static Calendar addDays(long time, int days) {
        return add(time, days, Calendar.DAY_OF_MONTH);
    }

    public static Calendar addHours(long time, int hours) {
        return add(time, hours, Calendar.HOUR_OF_DAY);
    }

    public static Calendar addMinutes(long time, int minutes) {
        return add(time, minutes, Calendar.MINUTE);
    }
    
    public static Calendar addMinutes(long time, int minutes, int minInterval) {
        return add(time, minutes*minInterval, Calendar.MINUTE);
    }

// Path: src/main/java/com/googlecode/android/widgets/DateSlider/TimeObject.java
// public class TimeObject {
//     public final CharSequence text;
//     public final long startTime, endTime;
//     public TimeObject(final CharSequence text, final long startTime, final long endTime) {
//         this.text = text;
//         this.startTime = startTime;
//         this.endTime = endTime;
//     }
// }


// Path: src/main/java/com/googlecode/android/widgets/DateSlider/labeler/Util.java
import java.util.Calendar;
import com.googlecode.android.widgets.DateSlider.TimeObject;

package com.googlecode.android.widgets.DateSlider.labeler;



/**
 * A bunch of static helpers for manipulating dates and times. There are two
 * types of methods -- add*() methods that add a number of units to a time
 * and return the result as a Calendar, and get*() objects that take a
 * Calendar object and a format string and produce the appropriate TimeObject.
 */
class Util {
    public static Calendar addYears(long time, int years) {
        return add(time, years, Calendar.YEAR);
    }

    public static Calendar addMonths(long time, int months) {
        return add(time, months, Calendar.MONTH);
    }

    public static Calendar addWeeks(long time, int days) {
        return add(time, days, Calendar.WEEK_OF_YEAR);
    }

    public static Calendar addDays(long time, int days) {
        return add(time, days, Calendar.DAY_OF_MONTH);
    }

    public static Calendar addHours(long time, int hours) {
        return add(time, hours, Calendar.HOUR_OF_DAY);
    }

    public static Calendar addMinutes(long time, int minutes) {
        return add(time, minutes, Calendar.MINUTE);
    }
    
    public static Calendar addMinutes(long time, int minutes, int minInterval) {
        return add(time, minutes*minInterval, Calendar.MINUTE);
    }

    public static TimeObject getYear(Calendar c, String formatString) {