Skip to content

Commit fe867b9

Browse files
committed
Merge pull request rmm5t#271 from RomainSauvaire/add-cutoff-documentation
Document the cutoff setting
2 parents 7d5c77a + c134368 commit fe867b9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ $("time#some_id").timeago("update", new Date());
8383

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

86+
## Settings
87+
88+
**`cutoff`** : Return the original date if time distance is older than `cutoff` (miliseconds).
89+
90+
```javascript
91+
// Display original dates older than 24 hours
92+
jQuery.timeago.settings.cutoff = 1000*60*60*24;
93+
```
94+
8695
## Changes
8796

8897
| Version | Notes |

0 commit comments

Comments
 (0)