title: how to get the current date until a specific time in PHP?
body: <p>I have a system to record the daily attendance of some workers to the company.</p>
  
  <p>The laboral day change when get 6:00am of the next day, it have a the next work cycle lapse.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>January 30, 2018
  Start: 6am.
  End of day: January 31, 6am
  
  January 31, 2018
  Start: 6am
  End of Day: February 1, 6am.
  </code></pre>
  
  <p><strong>The question is:</strong></p>
  
  <p>¿How i can get the current date until specific time in PHP?</p>