Skip to content

Modify comments in the example #1

@daviddoria

Description

@daviddoria

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions