2 ms·
It’s perfectly reasonable: Run task every 4 weeks: Onesecond = 1000; Oneminute = 60 * oneSecond; oneHour = 60 * oneMinute; oneDay = 24 * oneHour; oneWeek
by olliej 8y ago
It’s perfectly reasonable:
Run task every 4 weeks:
Onesecond = 1000;
Oneminute = 60 * oneSecond;
oneHour = 60 * oneMinute;
oneDay = 24 * oneHour;
oneWeek = 7 * oneDay;
Then from that reasonable set of definitions you make a even fire in 4 * oneWeek.
Maybe you aren’t even using setTimeout, but you’re using a timer library that internally is just using aetTineout (what does node have besides setTimeout by the way?).
You end up with an accumulation of individually reasonable questions that don’t work, for no obvious reason.
That said someone else is saying this actually is a “timers stop working in general after X days”, rather than just long lifetime timers, which makes this even more obtuse.