PHP Twitter Style Date
<p>I am wanting to format my date with a Twitter style format however all the examples only have the x hours ago. What I would like...if possible, is:</p>

<pre><code>- X min ago
- X hours ago
- Yesterday
- Thursday (or other days)
- 17 December
</code></pre>

<p>X min/hour ago and yesterday are pretty self explanatory but the day should be used if the date is greater than today and yesterday and the day falls within the current week (week starting Sunday).</p>

<p>The 17 December is if the date is greater than any day in the current week.</p>

<p>I am hoping this can be done. Cheers</p>
