[TiSiE] RelativeTime

Adds template tags to your wordpress blog to let you show dates and times in a relative way.

Author:Mathias [TiSiE] Gelhausen (profile at wordpress.org)
WordPress version required:2.9
WordPress version tested:3.0.5
Plugin version:0.2
Added to WordPress repository:12-01-2011
Last updated:11-01-2011
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://tisie.de/plugins/tisie-relativetime
Total downloads:883
Active installs:20+
plugin download
Click to start download

Adds template tags to your wordpress blog that lets you show relative time strings, such as "3 months and 2 days" or "4 months, 10 hours and 2 minutes".

Unlike other algorithms used to calculate relative time, this plugin uses an algorithm based on written substraction and therefore the calculated relative time is synchronous to the gregorian calendar system.
Example: Let's assume todays date were "2010-03-01" and the post date were "2010-02-01". The result of this plugin's calculation would be "1 month".

Currently only englisch and german localizations are available. But maybe you can help me translate to other languages. I will gladly add them. (see "FAQ" for more details)

The following template tags are available

  • the_date_relative / get_the_date_relative
  • the_modified_date_relative / get_the_modified_date_relative
  • comment_date_relative / get_comment_date_relative

Additionally there are two filter hooks available

  • tirt_get_string
  • tirt_get_array

Please see the "Other Notes" tab for more information about the usage.

Du kannst auch auf deutsch lesen.

This is a BETA release

So, if something is not working as expected or you get others errors or you encounter incompatibilities to other plugins - please report them to me so I can fix and improve my plugin.