Purpose of date.getTime in the expires flag of the cookie?
<p>I have a line of code that sets a cookie with an expiry date that looks like this.</p>

<pre><code>var date = new Date();
date.setTime(date.getTime() + 1000*60*60*24*365);
var expires = "; expires=" + date.toGMTString();
</code></pre>

<p>What I'm trying to do is understand what each number represents. I know thats its just adding milliseconds to the time object but what does each one represent is the question. </p>
