Large

Simplepedia

By Grant Stavely Last update Jul 16, 2010 — Installed 21,588 times.

Confused about auto-update code

in
Subscribe to Confused about auto-update code 2 posts, 2 voices



iaindalton User

CheckScriptForUpdate = {
...
 time: new Date().getTime() | 0,
...
}

I don't understand why you bitwise-or the number of milliseconds since 1970-01-01 00:00:00 with 0. I fooled around at the JS console and got this:

js> var time = new Date().getTime();
js> time
1242371790835
js> time | 0
1126242291

What does it mean? I don't glark it from context either.

 
auscompgeek User

you will have to ask sizzlemctwizzle as that is who wrote the auto update code

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel