Relative Date

By : dartiss

Relative dates are where, instead of showing the exact date of a post, you can say it was posted "4 days ago." Tomorrow, this message would say "5 days ago." This plugin, originally named WP Relative Date, has been designed to be called from your theme to display these relative dates as required.

It is based on code from a number of sites (none of which can be proven to be the originator!) but has been improved and converted to work with WordPress.

All relative dates are shown up to 2 depths and are not designed to be 100% accurate (due to rounding), but rather to give the reader an idea as to how old something is.

The dates will be shown in one the following formats, depending on relevance...

  • Years, months
  • Years, weeks
  • Months, weeks
  • Months, days
  • Weeks, days
  • Days, hours
  • Hours, minutes
  • Minutes, seconds
  • Seconds

Some examples...

Something that is 1 years and 2 months and 3 weeks old will be output as "1 years, 2 months". Something that is 1 years and 0 months and 3 weeks old will be output as "1 years, 3 weeks".

To use, you simply call either get_relative_date or relative_date - the first will return the relative date and the second will output it.

No parameters are required and if none are specified then it will simply create a relative date for the current post or page based on how old it is. However, you can specify as the first or second parameter a Unix format date (more on that in a minute). If one is supplied then the difference will be between that and the current date. If a second date is specified then the output will be the difference between the 2 dates.

For advanced usage options please read the "Other Notes" tab.

Time Machine

Time Machine is a simple plugin that grab N published articles from database (posts and/or pages) published on current day and/or offset of time in past years, and list them in widget. User can set widget title, number of displayed articles and message printed when there is no public articles on cur.........

Similar: 69%

WP-RelativeDate

Like 'Today', 'Yesterday', '2 Days Ago', '2 Weeks Ago', '2 'Seconds Ago', '2 Minutes Ago', '2 Hours Ago'....

Similar: 54%

A While Ago

Show timestamp for a post or page using a relative description (e.g. "Hours ago", "5 days ago"). The strings can be be changed easily for translations, and custom text can be prepended or appended to the timestamp. The rules for the descriptions are (along with the default strings): Within the la.........

Similar: 50%

Timeago

Twitter, Facebook, Gmail, and all the big guns are using the fuzzy date/time of type "3 minutes ago", "10 days ago" etc. Timeago plugin allows you to use the same format on your WordPress blogs using timeago jQuery plugin. Auto-updating/live "timeago" with microformats! For more information: http:.........

Similar: 42%

Post Date Time Change

Collectively change the date and time of each article of post or page or media library. Adopt DateTimePicker. jQuery plugin select date and time. Japanese (ja) - Katsushi Kawamori ...

Similar: 34%

A Long Time Ago

A Long Time Ago is a WordPress plugin that replaces the default post time (for example: "Posted on 01/01/2011 at 11:11") with "Posted x time ago" (examples: "Just now", "2 hours ago", "Yesterday", "on Thursday", "3 weeks ago", "1 year ago"). Enjoy!...

Similar: 23%

wp-days-ago

This plugin displays the number of years, months, days, hours and minutes since a post or a page was published or modified, or a comment was published, in the same format as Facebook, Twitter etc. Examples are "Just now" (less than a minute ago), "47 minutes ago" (less than an hour ago), "3 hours ag.........

Similar: 18%

The Time Ago

Time Ago One click convert date and time to "time ago" (e.g. 1 hour ago), easy to use, just one click! translation ready (to your language)....

Similar: 17%

Announcer

Announcer is a easy plugin to add multiple attractive announcements, notifications, greetings, events, notes etc with attractive styles and themes. Check out the Live demo of the plugin. (New) Announcer is rewritten from scratch and has lot more exciting features. ...

Similar: 15%

Quick Featured Images

The plugin is available in English, Spanish (Español), Arabic (العربية) and German (Deutsch)....

Similar: 6%