Jump to content

Javascript getTime question


number47
 Share

Recommended Posts

what is the reason that javascript getTime () will only go back to 1970?

Link to comment
Share on other sites

Internally the time is stored as the number of milliseconds that have passed since 1970. That's called a UNIX Timestamp.

 

It's a popular standard to store time. If you need older dates you will need to create your own date object and do the calculations yourself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...