Directory

time-diff - Vaadin Add-on Directory

Friendly description of a time difference with variable precision. time-diff - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/jifalops/time-diff](https://github.com//jifalops/time-diff/blob/polymer-1/README.md) on 2019-05-22 ]** [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/jifalops/time-diff) # time-diff Friendly description of a time difference (i.e. timeago) with variable precision. ## Installation ``` bower install --save jifalops/time-diff ``` ## Usage Set the `from` and `to` properties. `from` defaults to `Date.now()`. ## Demo ```html






``` Full demo: [webcomponents.org](https://www.webcomponents.org/element/jifalops/time-diff/demo/demo/index.html) | [github](https://jifalops.github.io/time-diff/components/time-diff/demo/). API: [webcomponents.org](https://www.webcomponents.org/element/jifalops/time-diff/time-diff) | [github](https://jifalops.github.io/time-diff). ## Contributing 1. Fork it on Github. 2. Create your feature branch: `git checkout -b my-new-feature` 3. Commit your changes: `git commit -am 'Add some feature'` 4. Push to the branch: `git push origin my-new-feature` 5. Submit a pull request ## License [MIT](https://opensource.org/licenses/MIT)