how to create an actually new object in javascript?

hellod9

Senior member
Sep 16, 2007
249
0
0
OK, there is probably a very simple answer to this.

I want to call a function like this:

function getTime() {
return new Date().getTime();;
}


The only problem is...I need it to be an actually NEW time, and not just the already called time from the previous times I've called the function. How do I do this in javascript?

Thank you.