return d;
}
protected DateRange createDateTimeRange(Session session, int year, int month, int day, int hour, int minute,
int second) {
DateRange r = session.createDateRange(new Date(), new Date());
r.setStartDateTime(session.createDateTime(createDateTime(year, month, day, hour, minute, second)));
r.setEndDateTime(session.createDateTime(createDateTime(year + 1, month, day, hour + 1, minute, second)));
return r;
}