title: How to split opening hours into blocks of 30 minutes?
body: <p>I'm currently working on a app to book barber appointments. I'am using fullcalendar for the appointments and i'm trying to get the business hours into seperate hours or blocks of 00:30 minutes. My database table contains a 'start' and 'end' time like 09:00 to 18:00. I was thinking about a while loop but don't now how to begin. It has to be somekind of array. Any thoughts on this?</p>
  
  <pre><code>Monday ['0' =&gt; '09:00',
          '1' =&gt; '09:30',
          '2' =&gt; '10:00',
         ];
  Tuesday  ['0' =&gt; '09:00',
            '1' =&gt; '09:30',
            '2' =&gt; '10:00',
           ];
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/BFRmG.jpg" rel="nofollow noreferrer">Table structure Appointments</a>
  <a href="https://i.stack.imgur.com/VM3DV.jpg" rel="nofollow noreferrer">Table structure Business_hours</a></p>