13 July 2006 ~ 3 Comments

Relative date function

Jehiah has a function called getRelativeTime() that will make it really easy to do relative date printing, such as “4 days ago” or “in 2 days.”

3 Responses to “Relative date function”

  1. antrix 15 July 2006 at 11:55 pm Permalink

    I prefer the timesince method that ships with Django.

  2. John 17 July 2006 at 7:12 pm Permalink

    Antrix:

    Good tip! Thanks.


Leave a Reply