I think @Bohemian has a better answer if you do not want to add dependencies, but IMO you need to save some time and abandon java classes and add joda time to your project :)
static boolean isBefore1230(Date d) {
return new DateTime(d).getMinuteOfDay() < 12 * 60 + 30;
}
source
share