-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
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
Labels
No labels