title: How to determine if current date/time is within a schedule?
body: <p>Given the schedule:</p>
  
  <pre><code>{
    "start_day": "Monday",
    "end_day": "Friday",
    "start_time": "9:00 AM",
    "end_time": "6:00 PM"
  }
  </code></pre>
  
  <p><strong>How can I determine if the current time in a specified time zone falls within the above given schedule?</strong> Are there any functions in PHP that'll help me? Issues that I foresee:</p>
  
  <ol>
  <li>Dealing with time zones</li>
  <li>The given schedule doesn't provide year information, but I guess I can assume it applies to the current year</li>
  <li>Dealing with the range of days (Monday and Friday are provided; how do I know that there are Tuesday, Wednesday, and Thursday in between?</li>
  </ol>
  
  <p><strong>UPDATE 1:</strong></p>
  
  <p>Change JSON so it encompasses all days/times:</p>
  
  <pre><code>{
    "start_day": "Monday",
    "end_day": "Sunday",
    "start_time": "12:00 AM",
    "end_time": "11:59 PM"
  }
  </code></pre>
  
  <p>Then change <code>$now</code> assignment to <code>$now = new DateTime("Saturday next month 10 am", $timezone);</code></p>
  
  <p>Nothing is outputted.</p>