rmm5t/jquery-timeago — pull request #94 by krues8dr (2012-10-18 18:07:40+00:00)
Title: Changed date string formatting, opened up date ranges for customization

I was using timeago on a client project and had a request to change the ranges of times as well as the labels for specific values. I've attached a patch that opens up the way these ranges are calculated, and allows for fine-grained tweaks to the actual time displays.

* Added support for different date strings, based on common standards. (E.g., instead of "%d" in all cases, "%NM", "%NS", "%Nd", "%Nm", "%NY", etc are available)
* Added tokens for the original date in the date strings (E.g., "%m", "%d", "%Y", "%b")
* Added ability to edit individually or completely replace the existing time ranges with custom values

This does **break backwards compatibility** with regard to the old method of customizing the strings in the function, as the prefix and suffix are now an actual part of the string. However, it adds significant improvements in the ability to tweak the internal functionality of the plugin overall. I've updated the unit tests and documentation to account for the new features and changes to the external API.