Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7696553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:48:23+00:00 2026-05-31T21:48:23+00:00

I assume I should be able to do it like so: var date =

  • 0

I assume I should be able to do it like so:

var date = Math.round((new Date).getTime() / 1000);
console.log(date);

However, that is logging:

301332453318

Which if I run through this convertor ( http://www.epochconverter.com/ ) it outputs the date as being:

GMT: Wed, 06 Nov 11518 03:13:03 GMT

Is it clearly not the year 11518 right now and my system time is correct so why is the Javascript time wrong – or am I doing it wrong?

Thanks,
Thomas

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:48:25+00:00Added an answer on May 31, 2026 at 9:48 pm

    Well this is weird. If I look at the time in the console it is correct, but if I highlight it and copy it for some reason chrome (or maybe OSX) is prepending the 30 onto it… WTF? Any ideas why?

    enter image description here

    In the image look at the logged time: 1332454189 (the correct time) but the ‘highlighted’ value (which is what I copied and pasted into the epoch convertor) for some reason has the 30 prepended onto it as evidenced by the “Search Google for ‘301332454189’”

    Any ideas why?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume you are doing something like the following List<string> myitems = new List<string> {
I'm writing a little desktop app that should be able to encrypt a data
I have a client application that should be able to handle the following: 1)
I'm making an app for a custom Tarot deck that should be able to
I assume this should be fine bool prefMatch = false; // Is the frequency
I'm using OpenLayers to display OpenStreetMap maps. (Though, I'd assume this should be general
Assume the following class: public class MyEnum: IEnumerator { private List<SomeObject> _myList = new
Assume that we have N erlang nodes, running same application. I want to share
I'd like to provide an accessor on a class that provides an NSInputStream for
I'm new to Wicket and would like to maintain a web application from inside

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.