title: Calculating the day time and night time between two dates
body: <p>I am trying to calculate, in seconds, the amount of day time and night time between two dates, given that "night time" is defined as 8:00PM through 7:59 AM, and "day time" as 8:00AM through 7:59PM. The past date that I will be comparing to the current timestamp will always be less than 24 hours than the time now.</p>
  
  <p>How would I do this?</p>