This method gives the no of seconds since the Unix epoch.
moment().unix();
var a = moment().unix();
This value is floored to the nearest second, and does not include a milliseconds component.