according to the
api, you could also do this:
int hour = calendar.get(Calendar.HOUR_OF_DAY);
which uses a 24 hour clock. you could then check for > 9 and < 18
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors