I’ve forked your code an made it less precise for a site I’m building.
If you have this on GitHub already, let me know and I’ll fork from there instead, but I couldn’t find it.
Update: The plugin has been updated to version 2.0.1. All users are encourage to upgrade.
My WordPress plugin, wp-days-ago, has been updated to version 1.7.1.
This plugin displays the number of years and days since a post or a page was published. All calculations are based on days but it will not take into account that 24 hours are one day. If you publish a page or a post at 23:59, it will be marked with “yesterday” at 00:00 even if it’s only a minute since you published. In some cases, the plugin will display a human readable text instead of the days count. Today is “today” and not “0 days ago”. Yesterday is, well, “yesterday”, while anything published seven days ago is posted “a week ago”. If an entry is more than a year old, the plugin will display the post date as “X years, Y days”.
No changes to your theme or configuration are necessary when you upgrade from a previous version.
For detailed information on usage and available parameters, please see the plugin’s page at WordPress.org or the readme-file in the ZIP-file.
vegard at vegard dot netwith your input. You can also use any of the other points of contact listed on the About page.
It looks like you're using Google's Chrome browser, which records everything you do on the internet. Personally identifiable and sensitive information about you is then sold to the highest bidder, making you a part of surveillance capitalism.
The Contra Chrome comic explains why this is bad, and why you should use another browser.