https://github.com/simonwaldherr/distime.js
converts UNIX-Timestamps to strings like " 5 days ago " in 19 languages
https://github.com/simonwaldherr/distime.js
hacktoberfest hacktoberfest-accepted javascript time timestamp
Last synced: 6 months ago
JSON representation
converts UNIX-Timestamps to strings like " 5 days ago " in 19 languages
- Host: GitHub
- URL: https://github.com/simonwaldherr/distime.js
- Owner: SimonWaldherr
- Created: 2013-03-16T17:03:23.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T13:19:09.000Z (over 1 year ago)
- Last Synced: 2025-01-23T05:12:52.599Z (12 months ago)
- Topics: hacktoberfest, hacktoberfest-accepted, javascript, time, timestamp
- Language: JavaScript
- Homepage: https://simonwaldherr.github.io/disTime.js/
- Size: 85.9 KB
- Stars: 36
- Watchers: 4
- Forks: 19
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# disTime.js
converts [UNIX-Timestamps](https://en.wikipedia.org/wiki/Unix_time) to strings with the relative date and time (like " 5 days ago ") in many languages:
de,
en,
es,
fr,
in,
it,
ms,
nl,
no,
oc,
pl,
pt,
ro,
ta,
ru,
sv,
tl,
tr,
uk ([ISO 639-1 formatted](https://en.wikipedia.org/wiki/ISO_639-1)).
*coders who like disTime.js maybe also like [parseTime.js](https://github.com/SimonWaldherr/parseTime.js)*
if you like, feel free to add more languages. Many thanks to all [contributors](https://github.com/SimonWaldherr/disTime.js/graphs/contributors)
## about
License: MIT
Version: 0.9.0
Date: 10.2020
## demo
Test this code on the associated github page [simonwaldherr.github.io/disTime.js/](https://simonwaldherr.github.io/disTime.js/).
## contact
Feel free to contact me via [eMail](mailto:contact@simonwaldherr.de) or on [Twitter](http://twitter.com/simonwaldherr). This software will be continually developed. Suggestions and tips are always welcome.