1// Rounds the value
2const timestamp = Math.round(new Date() / 1000); // 1405792937
3
4// - OR -
5
6// Floors the value
7const timestamp = new Date() / 1000 | 0; // 1405792936
1const timestamp = new Date() / 1000; // 1405792936.933
2// Technically, .933 would be milliseconds.