Moment.js: Date.now() javaScript analogue
javascript, momentjs, unix-timestamp, utc
Solution
Use the `valueOf` method on a moment object:
For local time:
moment().valueOf();
For UTC:
moment().utc().valueOf();
Problem
Is there any simple way to get a number of milliseconds elapsed since `1 January 1970 00:00:00 UTC` simular the `Date.now()` javaScript function?