title: Select Google Calendar events by time of day
body: <p>As I'm working on a digital signage using Google Calendar API - in PHP, I would like to list all events of a day, but not the events back in time (earlier hours than now). It turns out that Google API will only serve the whole day - from today's date and foreward in time using the <strong>timeMin</strong>, but will not discard events from earlier then "now()" time.
  Has anybody seen the same - or have any other solution to this apart from bringing in the whole array a second time and do another filtering? I would rather like to have this dine in my PHP server-side as the ajax-xlient I'm using would only need to pick up raw data without any further sorting.</p>
  
  <pre><code>$service = new Google_Service_Calendar($client);
  $batch = new Google_Http_Batch($client);
  
  $optParams = array(
    'maxResults' =&gt; 10,
    'orderBy' =&gt; 'startTime',
    'singleEvents' =&gt; TRUE,
    'timeMin' =&gt; Date('c')
  );
  </code></pre>