I have a variable Date someDate = new Date(0) that starts at the Unix Epoch and is incremented. I need to test whether the time of someDate is currently between 0000 and 1200 hours. Essentially I need to be able to compare a Date object with a time range.
Is there a way to do this in Java, or do I need to roll my own or use something like Joda-Time?
long?someDate?someDateis not incremented in real time. A timer waits a set interval and then adds some other number of seconds tosomeDate.