News for hackers. Stuff that matters.
Re:Stop writing milliseconds and hating JavaScript's setTime... by gb on Saturday May 14, 2011 @08:16PM (#2548937)
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.
Re:Stop writing milliseconds and hating JavaScript's setTime... by jrockway on Saturday May 14, 2011 @09:02PM (#2549019)
Where 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.)

Re:Stop writing milliseconds and hating JavaScript's setTime... by snissn on Sunday May 15, 2011 @01:35AM (#2549398)
is mytimelibrary.MINUTE what you're getting at?