Read the statement by Michael Teeuw here.
MMM-Humanize-Duration
-
Description
I just had a baby, and I wanted a geeky way to keep track of his exact age, so…
You can also use it to track any other past (or future) events!
Underneath, it’s just a simple wrapper around HumanizeDuration.jsScreenshots:

Download:
[card:ryck/MMM-Humanize-Duration]
-
@ryck Not ‘geeky’ at all…pretty cool!
-
Indeed, very cool. I really like it.
What is needed to add localisation to your module? My wife don’t like to ready the age of our daughter in englisch… :-) -
@andurii Thanks!
Using another language is really easy (thanks to HumanizeDuration.js): Just pass language as an option, like:
options: { units: ["y", "mo", "w", "d", "h"], round: true, language: 'de', conjunction: ' and ', serialComma: false, }, -
@ryck thank you for pointing me to this. Maybe you could also mention this in the readme or even use the specified standard language of the mirror as value here.
-
@andurii That’s a great idea, I’ll do that!
-
Congratulations upon reproducing!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login