Have ideas to improve npm?Join in the discussion! »

friendly-time-german

1.1.3 • Public • Published

friendly-time - German Version

npm FOSSA Status

Prints human friendly timestamps (eg. just now, 5 minutes ago, 3 days from now) in German.

Original Version

GitHub

Usage

var friendlyTime = require('friendly-time-german');
 
var now = new Date();
var minutes = new Date(now - (1000 * 60 * 5));
var days = new Date(now + (1000 * 60 * 60 * 24 * 3));
 
friendlyTime(now); // just now
friendlyTime(minutes); // 5 minutes ago
friendlyTime(days); // 3 days from now

License

FOSSA Status

Install

npm i friendly-time-german

DownloadsWeekly Downloads

2

Version

1.1.3

License

MIT

Unpacked Size

6.53 kB

Total Files

5

Last publish

Collaborators

  • avatar