MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-Humanize-Duration

    Utilities
    4
    7
    1949
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      ryck Module Developer last edited by

      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.js

      Screenshots:

      MMM-Humanize-Duration

      Download:

      cowboysdude 1 Reply Last reply Reply Quote 5
      • cowboysdude
        cowboysdude Module Developer @ryck last edited by

        @ryck Not ‘geeky’ at all…pretty cool!

        1 Reply Last reply Reply Quote 0
        • A
          AnduriI last edited by

          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… 🙂

          R 1 Reply Last reply Reply Quote 0
          • R
            ryck Module Developer @AnduriI last edited by ryck

            @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,
            		},
            
            A 1 Reply Last reply Reply Quote 0
            • A
              AnduriI @ryck last edited by

              @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.

              R 1 Reply Last reply Reply Quote 0
              • R
                ryck Module Developer @AnduriI last edited by

                @andurii That’s a great idea, I’ll do that!

                1 Reply Last reply Reply Quote 0
                • bhepler
                  bhepler Project Sponsor last edited by

                  Congratulations upon reproducing!

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy