/**
* Returns the last millisecond of the minute.
*
* @param calendar the calendar / timezone (<code>null</code> not
* permitted).
*
* @return The last millisecond.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
/**
* Returns the first millisecond of the minute.
*
* @param calendar the calendar which defines the timezone
* (<code>null</code> not permitted).
*
* @return The first millisecond.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
/**
* Returns the first millisecond of the minute.
*
* @param calendar the calendar/timezone (<code>null</code> not permitted).
*
* @return The first millisecond.
*
* @throws NullPointerException if <code>calendar</code> is
* <code>null</code>.
*/
public long [[#variable1a86e8e0]](Calendar calendar) {
int year = this.day.getYear();
int month = this.day.getMonth() - 1;
int day = this.day.getDayOfMonth();
calendar.clear();
calendar.set(year, month, day, this.hour, this.minute, [[#variable1a86e880]]);
calendar.set(Calendar.MILLISECOND, [[#variable1a86e800]]);
//return calendar.getTimeInMillis(); // this won't work for JDK 1.3
return calendar.getTime().getTime();
}
|