title: How to determine if a timestamp is within working hours?
body: <p>Given a any unix timestamp (i.e. 1306396801) which translates to 26.05.2011 08:00:01, how can I determine if this is within a given timeframe (i.e. 08:00:00 and 16:00:00)?</p>
  
  <p>This needs to work for any day. I just want to know if this timestamp is within the given time-interval, on any future (or past) day, the date is unimportant. I don't care if it is on the 25th or 26th, as long as it is between 08:00 and 16:00.</p>
  
  <p>I am on the lookout for a java solution, but any pseudo code that works will be ok, I'll just convert it.</p>
  
  <p>My attempts so far has been converting it to a java Calendar, and reading out the hour/min/sec values and comparing those, but that just opened up a big can of worms. If the time interval I want it between is 16.30, I can't just check for tsHour > frameStartHour &amp;&amp; tsMin > frameStartMin as this will discard any timestamps that got a minute part > 30.</p>
  
  <p>Thank you for looking at this :)</p>
  
  <p>To clarify.
  I am only using and referring to UTC time, my timestamp is in UTC, and the range I want it within is in UTC.</p>