distime

converts UNIX-Timestamps to strings like '5 days ago' in eight languages

Usage no npm install needed!

<script type="module">
  import distime from 'https://cdn.skypack.dev/distime';
</script>

README

disTime.js

converts UNIX-Timestamps to strings with the relative date and time (like " 5 days ago ") in many languages: de, en, es, fr, in, it, ms, nl, no, pl, pt, ru, sv, uk (ISO 639-1 formatted).
coders who like disTime.js maybe also like parseTime.js

if you like, feel free to add more languages. Many thanks to all contributors

about

License: MIT
Version: 0.8.0
Date: 10.2017

demo

Test this code on the associated github page simonwaldherr.github.com/disTime.js/.

contact

Feel free to contact me via eMail or on Twitter. This software will be continually developed. Suggestions and tips are always welcome.