private void formatTimeInterval(StringBuilder buf, TimeInterval timeInterval, SimpleDateFormat timeFormat, boolean local) { if (!isDailySession()) { buf.append("weekly, "); formatDayOfWeek(buf, startTime.getDay()); buf.append(" "); } else { buf.append("daily, "); } if (local) { timeFormat.setTimeZone(startTime.getTimeZone()); } buf.append(timeFormat.format(timeInterval.getStart().getTime())); buf.append(" - "); if (!isDailySession()) { formatDayOfWeek(buf, endTime.getDay()); buf.append(" "); } if (local) { timeFormat.setTimeZone(endTime.getTimeZone()); } buf.append(timeFormat.format(timeInterval.getEnd().getTime())); }
timeFormat.setTimeZone(startTime.getTimeZone()); buf.append(timeFormat.format(timeInterval.getStart().getTime()));
private TimeInterval theMostRecentIntervalBefore(Calendar t) { TimeInterval timeInterval = new TimeInterval(); Calendar intervalStart = timeInterval.getStart(); intervalStart.setTimeZone(startTime.getTimeZone()); intervalStart.setTimeInMillis(t.getTimeInMillis());
Calendar intervalStart = timeInterval.getStart(); intervalStart.setTimeZone(startTime.getTimeZone()); intervalStart.setTimeInMillis(t.getTimeInMillis());
Calendar intervalStart = timeInterval.getStart(); intervalStart.setTimeZone(startTime.getTimeZone()); intervalStart.setTimeInMillis(t.getTimeInMillis());
timeFormat.setTimeZone(startTime.getTimeZone()); buf.append(timeFormat.format(timeInterval.getStart().getTime()));