var seconds = new Date().getTime() / 1000;
….will give you the seconds since midnight, 1 Jan 1970
More Related Contents:
- How to get date for nearest Sunday at 15:00 JST?
- How to sort an object array by date property?
- How do you display JavaScript datetime in 12 hour AM/PM format?
- How to add hours to a Date object?
- Display date/time in user’s locale format and time offset
- Compare two dates with JavaScript
- new Date() is working in Chrome but not Firefox
- Parsing ISO 8601 date in Javascript
- Get Locale Short Date Format using javascript
- How can I calculate the number of years between two dates?
- Javascript format date / time [duplicate]
- Javascript Date.UTC() function is off by a month?
- How do I get the current time only in JavaScript
- javascript Date timezone issue
- JSON Stringify changes time of date because of UTC
- How to get the exact local time of client?
- Convert normal date to unix timestamp
- Firestore Timestamp.fromDate not UTC
- How to get datetime in JavaScript?
- Regex and ISO8601 formatted DateTime [duplicate]
- Compute elapsed time [duplicate]
- Javascript show milliseconds as days:hours:mins without seconds
- How do I get a timestamp in JavaScript?
- Javascript to convert UTC to local time
- Date.toISOString() but local time instead of UTC
- Parsing Date from webservice
- create javascript date UTC
- Hot to get incomplete datetime-local input values
- Does anyone know of a good JSON time server?
- Converting Google spreadsheet date into a JS Date object?