title: Display "we will re-open tomorrow at ____" using PHP clock
body: <p>So I have a clock that I currently use to do many things throughout a Woocommerce shop. It functions perfectly and does its job.</p>
  <p>I use 'open', 'closed' and 'last_call' to display messages in different areas of the site. It also disables certain things in the checkout depending on open status etc.</p>
  <p>What I would like to do is use this function to display a &quot;We will re-open again tomorrow at 9:00am&quot; or, if close enough to open time, &quot;We re-open at 9:00am (1 hour and 23 minutes from now).&quot;</p>
  <p>This is the code I have. Would I need to re-use this function and essentially duplicate much of it or is there a cleaner way of accomplishing this?</p>
  <p>(PS. Store hours are pulled from an ACF date/time field in a custom Options page)</p>
  <p>TIA</p>
  <pre><code>// -------------------------------------------
  // STORE CLOCK
  // -------------------------------------------
  function store_clock() {
  
      $weekday_open = get_field('weekday_open', 'options');
      $sat_open = get_field('sat_open', 'options');
      $sun_open = get_field('sun_open', 'options');
      $weekday_close = get_field('weekday_close', 'options');
      $sat_close = get_field('sat_close', 'options');
      $sun_close = get_field('sun_close', 'options');
      $store_closed = get_field('close_store', 'options');
  
      $store_times = array(
          array( //Sunday
              'open' =&gt; $sun_open,
              'close' =&gt; $sun_close,
          ), 
          array( //Monday
              'open' =&gt; $weekday_open,
              'close' =&gt; $weekday_close,
          ), 
          array( //Tuesday
              'open' =&gt; $weekday_open,
              'close' =&gt; $weekday_close,
          ), 
          array( //Wednesday
              'open' =&gt; $weekday_open,
              'close' =&gt; $weekday_close,
          ), 
          array( //Thursday
              'open' =&gt; $weekday_open,
              'close' =&gt; $weekday_close,
          ), 
          array( //Friday
              'open' =&gt; $weekday_open,
              'close' =&gt; $weekday_close,
          ),
          array( //Saturday
              'open' =&gt; $sat_open,
              'close' =&gt; $sat_close,
          ), 
      );
  
      $current_day = date( 'w', current_time('timestamp') ); //Numeric representation of the day (0 for Sunday, 6 for Saturday)
      $current_date = date( 'd F Y', current_time('timestamp') );
  
      if ( $store_times[$current_day] !== false &amp;&amp; $store_closed !== true ) {
  
          $opening_time = strtotime( sprintf( '%s %s', $current_date, $store_times[$current_day]['open'] ) );
          $closing_time = strtotime( sprintf( '%s %s', $current_date, $store_times[$current_day]['close'] ) );
  
          if ( $closing_time - current_time('timestamp') &gt; 0 &amp;&amp; $closing_time - current_time('timestamp') &lt; 1800 ) {
  
              return 'last_call';
  
          } elseif  ( $opening_time &gt; current_time('timestamp') || $closing_time &lt; current_time('timestamp') ) {
  
              return 'closed';
  
          } else {
  
              return 'open';
  
          }
      } else {
          return 'closed';
      }
  }
  </code></pre>