arrow-left arrow-right brightness-2 chevron-left chevron-right facebook-box facebook loader magnify menu-down rss-box star twitter-box twitter white-balance-sunny window-close
Relative dates in Movable Type
1 min read

Relative dates in Movable Type

After seeing something that I really liked on Textism, I decided to implement it myself. It has to do with the way that the post times are displayed. As it was, I simply had the entry date above the entries, like most weblogs. Now, as you can see, I have the time relative to the viewer’s [current] time. If you use Movable Type and are interested in this method, I’ve included my PHP code below. Very simple.

UPDATE: E-mail me for the code.

You've successfully subscribed to Justin Blanton.
Success! Your account is fully activated, you now have access to all content.