title: Compare time to separate days
body: <p>I have some DB entries, they have timestamps. And all I want is to draw a separate line between days. And also, I need the day to start not at 00:00, but at 07:00. It's like an offset for the day start.</p>
  
  <p>Now I have that (for context):</p>
  
  <pre><code>foreach($logs as $log) {
      $cur_date = $log[0]['timestamp'];
      echo "&lt;p&gt;".$log[0]['content']."&lt;/p&gt;";
  }
  </code></pre>
  
  <p>Is there a simple workaround for the problem I've described?</p>
  
  <p>Thank you!</p>