Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Relative Date

Display a relative date (e.g. "4 days ago")

Learn more about my version numbering methodology


  • Enhancement: Added a new option to automatically convert existing blog output to a relative date
  • Enhancement: After WP 4.6 the plugin text domain doesn't need to be loaded. So I don't!
  • Enhancement: Updated output to be WCAG 2.0 compliant at AA level
  • Maintenance: Squeezed all the files into just one, after realising it wouldn't be that big
  • Maintenance: Apart from the core code that generates the relative date most of the existing code has been re-written
  • Maintenance: Screenshots added and large swaths of the README re-written
  • Maintenance: The time period text ("hour", "second", etc) - both singular and plural versions - was missing from the language files. Now added


  • Maintenance: Added a text domain and domain path


  • Maintenance: Updated support forum link


  • Maintenance: Split code into separate files within an includes folder. Have a single root file that includes all the relevant code
  • Maintenance: Re-written README
  • Enhancement: Added new depth parameter
  • Enhancement: Added internationalisation


  • Maintenance: Removed dashboard widget


  • Bug: Now calculates current time properly - gets server time in GMT and applies GMT difference, as specified in user's WP options
  • Enhancement: New parameter added that allows user to change the divider used in output
  • Enhancement: User does not now need to pass any dates to the function - in this case the relative date for the current post/page will be returned
  • Enhancement: Renamed functions that user does not specify to avoid clashes with other plugins
  • Enhancement: Allow parameters to be specified in any order
  • Enhancement: Added useful links to plugin page


  • Initial release

Requires: 2.5 or higher
Compatible up to: 4.6.2
Last Updated: 2 months ago
Active Installs: 100+


2 out of 5 stars


Got something to say? Need help?


Not enough data

1 person says it works.
0 people say it's broken.