If you read the API for calendar you would see that the compareTo() method returns 0 if the two calendar items are equal, returns a negative number if now comes before evening or a positive number if now comes after evening. So I take the result and check if the returned value is >= 0. If so, now is equal to or later than what I define evening to be, so it is evening now, otherwise it is before evening.
The way to use it would be in combination with my previous post (in pseudocode):
This looks like a job for .... legal tender! It says so right in this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java