title: How moment.js works with declination minutes and hours?
body: <p>Tell me pls, have a number, for example <strong>1440</strong> and i need get or minute, or minutes, or hour or hours. What can I do? I do:</p>
  
  <pre><code>var getTimeouts = function (timeouts) {
      var timeout = +timeouts,
          timeoutValue = "";
  
      if (timeout &gt; 0) {
          if (timeout % 60 == 0) {
              if (timeout == 60) {
                  // timeoutValue = '1 hour';
              } else {
                  // timeoutValue = '... hours';
              }
          }  else {
              if (timeout == 1) {
                  // timeoutValue = '1 minute';
              } else {
                  // timeoutValue = '... minutes';
              }
          }
      }
  
      return timeoutValue;
  };
  
  console.log(getTimeouts(1440)); // 24 hours
  </code></pre>
  
  <p>Question: how with <a href="http://momentjs.com/docs/#/i18n/" rel="nofollow">momont.js</a> I can parse a number and get minute/minutes/hour/hours?</p>