friendly-time-german
v1.1.3
Published
Prints human friendly timestamps (eg. just now, 5 minutes ago, 3 days from now) in German Locale
Downloads
4
Maintainers
Readme
friendly-time - German Version
Prints human friendly timestamps (eg. just now, 5 minutes ago, 3 days from now) in German.
Original Version
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