title: Is it possible to edit the granularity of the Moment#to output?
body: <p>With MomentJS's <code>Moment#to</code> method, is there any way that I can control the output at all?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var opens = moment('Tue 8:00:00am', 'ddd h:mm:ssa')
  
  var now1 = moment('Tue 7:43:30am', 'ddd h:mm:ssa')
  console.log(now1.to(opens))  // in 17 minutes
  
  var now2 = moment('Tue 7:43:31am', 'ddd h:mm:ssa')
  console.log(now2.to(opens))  // in 16 minutes</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://unpkg.com/moment@2.17.1/min/moment.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I'd like for <code>now2.to(opens)</code> to ignore seconds while comparing, so it would return "in 17 minutes".</p>
  
  <p>I have a feeling that that's not possible, since the <a href="http://momentjs.com/docs/#/displaying/to/" rel="nofollow noreferrer">moment docs</a> don't list any parameters that are applicable.</p>
  
  <p><code>Moment#isBefore</code> and friends take a second optional parameter that lets you limit the granularity of the comparison (eg, <code>Moment#isBefore(otherMoment, 'minute')</code> will ignore seconds and milliseconds when comparing.</p>
  
  <hr>
  
  <p><strong>Edit:</strong> My end goal is to only have the "in N minutes" message change when the minute changes, instead of at 31 seconds. </p>
  
  <p>In my example above, I have "in 17 minutes" when the source moment is at :30, and "in 16 minutes" at :31.</p>
  
  <hr>
  
  <p><strong>Edit 2:</strong> In my application, my left-hand moment is taken from <code>moment()</code>, so it inherits from the environment. My right-hand moment is parsed from a string without seconds. I'm not sure how relevant this information is, which is why I left it out of the original question.</p>