Javascript API for formatting dates in 2013
<p>I've noticed that SharePoint 2013 uses past tense time periods for a lot of it's date formatting. eg</p>

<ul>
<li>A few seconds ago</li>
<li>Yesterday at 3:00pm</li>
<li>5 days ago
etc.</li>
</ul>

<p>Is there a JavaScript method available that takes a date and returns that type of format?</p>
