39 ms·
I'm not disagreeing with your general point, but this does seem a little overkill when you could achieve a similar effect with a few constants: 5 * MINUTE
by gb 15y ago
I'm not disagreeing with your general point, but this does seem a little overkill when you could achieve a similar effect with a few constants:
5 * MINUTE
3.5 * HOUR
etc.
- jrockway 15y agoWhere are you getting these constants in JavaScript? You can't even trust the built-in "undefined" to actually contain "undefined". (My point is: a library may be more appropriate in the JavaScript case, because of the lack of constants.)
- snissn 15y agois mytimelibrary.MINUTE what you're getting at?