Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify comments in the example #1

Open
daviddoria opened this issue Jul 6, 2012 · 0 comments
Open

Modify comments in the example #1

daviddoria opened this issue Jul 6, 2012 · 0 comments

Comments

@daviddoria
Copy link

I think it would be much clearer what is going on if instead of:

    // The new year is here! Count towards something else.
    // Notice the *1000 at the end - time must be in milliseconds
    ts = (new Date()).getTime() + 10*24*60*60*1000;

the example read:

    // Countdown towards 10 days from now
    // Notice the *1000 at the end - time must be in milliseconds
    daysFromNow = 10;
    daysToMilliseconds = 24*60*60*1000;
    ts = (new Date()).getTime() + daysFromNow * conversionToMilliseconds;

or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant