title: How does this JavaScript statement calculate the date?
body: <p>So I was looking at how I could display a Desktop Notification using a Google Chrome extensions when I came across these lines of code:</p>
  
  <pre><code>var time = /(..)(:..)/(Date());              // The prettyprinted time.
  var hour = time[1] % 12 || 12;               // The prettyprinted hour.
  var period = time[1] &lt; 12 ? 'a.m.' : 'p.m.'; // The period of the day.
  </code></pre>
  
  <p>What the heck does all of this do? </p>