Relative Datetime Template Filter for Django

A template filter for converting datetime objects to relative times (ie, “10 minutes ago”). Also includes a utility function/filter for converting string representations of UTC timestamps to datetime objects. I created this for a project that displays a Twitter feed alongside a blog.


Published 25 Jan. 2010 under by Daniel Ryan