MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Humanize-Duration

    Scheduled Pinned Locked Moved Utilities
    7 Posts 4 Posters 3.3k Views 3 Watching
    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 Offline
      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:

      [card:ryck/MMM-Humanize-Duration]

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

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

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

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

                1 Reply Last reply Reply Quote 0
                • bheplerB Offline
                  bhepler Module Developer
                  last edited by

                  Congratulations upon reproducing!

                  1 Reply Last reply Reply Quote 1

                  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
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy