moment().unix();
moment#unix
outputs a Unix timestamp (the number of seconds since the Unix Epoch).
moment(1318874398806).unix(); // 1318874398
This value is floored to the nearest second, and does not include a milliseconds component.
moment#unix
outputs a Unix timestamp (the number of seconds since the Unix Epoch).
moment(1318874398806).unix(); // 1318874398
This value is floored to the nearest second, and does not include a milliseconds component.
From here you can search these documents. Enter your search terms below.
Keys | Action |
---|---|
? | Open this help |
← | Previous page |
→ | Next page |
s | Search |