momentJS得到UTC时间戳

伙计们,我无法使用momentjs获取UTC时间戳。 希望有人能指引我正确的方向

var start = Date.now(); var utc = moment.utc(start).toDate(); 

要么

 var utc = moment.utc().toDate(); Tue Nov 11 2014 13:45:13 GMT-0500 (EST) 

返回我所在的EST时区,而不是UTC。 我如何获得UTC的Javascriptdate?

如果我做

 var utc= moment.utc(); console.log(utc); 

输出是

  { _useUTC: true, _isUTC: true, _l: undefined, _i: undefined, _f: undefined, _d: Tue Nov 11 2014 13:43:21 GMT-0500 (EST) } 

谢谢

最简单的回答来自评论:

 moment.utc().valueOf() 

给出UTC时间戳

 var moment = require('moment'); // timestamp with UTC time console.log(moment.utc().format('ddd MMM DD YYYY HH:mm:ss z')); // or via the date object console.log(moment.utc().toDate().toUTCString());