Do you know viewing long event lists with dates? It can be difficult to relate to a date, instead if you are told a text description with relative units? Like: 2014-06-10 would give December 17, 2011
You can find the jQuery plug in here: https://github.com/rmm5t/jquery-timeago
| Code | Result |
|---|---|
<abbr class="timeago" title="" ></abbr> |
Zendesk case example : Your case was last viewed |
<abbr class="timeago" title="1989-03-12"></abbr> |
On March 12, 1989 ( ), Tim Berners-Lee, a British computer scientist and former CERN employee, wrote a proposal for what would eventually become the World Wide Web |
<abbr class="timeago" title="1964-09-23"></abbr> |
I was born 1964-09-23 |
Use
jQuery.timeago.settings.allowFuture = true;
to support
future
dates.
|
|
<abbr class="timeago" title="2011-12-17T09:24:17Z">December 17, 2011</abbr> |
December 17, 2011 |
<abbr class="timeago" title="2015-01-01">Next year</abbr> |
|