--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
Q: Is `Date.now()` equal to `+new Date()` ?
A: Not always.
node << EOF
while (1) {
if (+new Date() === Date.now()) {
process.stdout.write('.');
}
else {
console.log("FAIL!");
break;
}
}
EOF
-> ...FAIL!
Things of the time.
:-P
--
Jorge.
Yes, time keeps flowing like a river... :-P
timeStamp = (new Date()).getTime()
then on retrieval
date = new Date(timeStamp)
to get a Date object
Was easier for me than serializing an object
-- Dick
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com