Django-resolvetime

Django-resolvetime is a Django filter to convert a python datetime object into a format that specifies the time difference between the time of the datetime and now. I developed this for a personal project of mine and decided to opensource since I could not find a filter available to get the job done.

The code is hosted at http://code.google.com/p/django-resolvetime/. Installation and usage of the filter is straight forward. Instructions are given in the README file.

About these ads

4 responses to “Django-resolvetime

  1. I was recently looking for this exact filtering functionality. Thanks!

  2. Kasun Herath

    @John
    Thanks for pointing out. I had missed the built in filter!

  3. The timesince filter is minute precision meaning the smallest unit is minutes. I see your code supports seconds. For situations where time difference of seconds is required I will be using your code.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s