title: Multi-dimensional array and timestamp
body: <p>Here is the code :</p>
  
  <pre><code>var array = [];
  
  $('.body-watch-logo').each(function () {
  
                  array[]['evendId'] = $(this).data('event');
                  array[]['timestamp'] = $(this).data('timestamp');
  
                  $now = new Date();
                  $outStr = now.getHours()+':'+now.getMinutes();
  
                  alert($outStr);
  
                  if(array[]['timestamp'] == $outStr) {
  
                          alert('Tring Tring Tring');
  
                          //do something here
  
                  }
  
                  $i++;
          });
  </code></pre>
  
  <p>.body-watch-logo has several events in it with attributes eventId and startTime. So I want to store this information in array. Then compare the startTime which has only Hour and minute with current-time. If they are equal give an alert. Does anyone have an idea how to do this? Use Ajax may be. Please suggest.</p>