title: Momentjs get current GMT unix time
body: <p>Backend API for a project I am working on only accepts the UNIX time. </p>
  
  <p>The server is set in GMT so to send the UNIX time in GMT I am having to manipulate the data according to the timezone to get the results I need. </p>
  
  <p>Is there a better way than below in momentJS to get the current UNIX time in GMT? </p>
  
  <pre><code>  var timeOffset = moment().utcOffset();
  
    if (timeOffset &gt;= 0) {
      this.sinceNow = moment().subtract(timeOffset, 'minutes').unix();
    }
    else {
      this.sinceNow = moment().add(timeOffset * -1, 'minutes').unix();
    }
  </code></pre>