Skip to content

Commit 7e8e6d2

Browse files
committed
it took a a while to find this 'update' option
it took a a while to find this 'update' option, so I decided to add it to the Readme and save somebody some time... thank for this great plugin!
1 parent 6166970 commit 7e8e6d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ introduced to HTML5):
6666

6767
As time passes, the timestamps will automatically update.
6868

69+
If you want to update a timestamp, just do something like
70+
71+
```html
72+
jQuery("time#timeago").timeago('update', new_ISO8601_string);
73+
```
74+
6975
**For more usage and examples**: [http://timeago.yarp.com/](http://timeago.yarp.com/)
7076

7177
**For different language configurations**: visit the [`locales`](https://github.com/rmm5t/jquery-timeago/tree/master/locales) directory.

0 commit comments

Comments
 (0)