Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jifalops/time-diff
Friendly description of a time difference with variable precision.
https://github.com/jifalops/time-diff
Last synced: about 2 months ago
JSON representation
Friendly description of a time difference with variable precision.
- Host: GitHub
- URL: https://github.com/jifalops/time-diff
- Owner: jifalops
- License: mit
- Created: 2017-06-27T22:02:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T08:00:28.000Z (almost 6 years ago)
- Last Synced: 2024-11-11T09:49:18.425Z (about 2 months ago)
- Language: HTML
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/jifalopstime-diff)
[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/jifalopstime-diff.svg)](https://vaadin.com/directory/component/jifalopstime-diff)
[![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)