code: protected Calendar getEndOfDayJavaCalendar (final long timeInMillis)
    {
      final Calendar endOfDay = createJavaCalendar (timeInMillis);
      endOfDay.set (Calendar.HOUR_OF_DAY, 23);
      endOfDay.set (Calendar.MINUTE, 59);
      endOfDay.set (Calendar.SECOND, 59);
      endOfDay.set (Calendar.MILLISECOND, 999);
      return endOfDay;
    }
docs: Returns the end of the given day <code>{@link Calendar}</code>. This
  calculation will take the <code>BaseCalendar</code> time zone into account
  if it is not <code>null</code>.
  
  @param timeInMillis
  a time containing the desired date for the end-of-day time.
  @return A <code>{@link Calendar}</code> set to the end of the given day.