2 ms·
OK, but most of the time you're not really going to care about those exceptions, are you? Like in the example of setting a cookie for 'a day'.
by oneeyedpigeon 12y ago
OK, but most of the time you're not really going to care about those exceptions, are you? Like in the example of setting a cookie for 'a day'.
- ColinWright 12y agoWhere you're using "day" to mean "reasonably long time in the context of browser session" then no, it won't matter. But if you're using time stamps as IDs in a database, recognize that the same time can occur twice as the clocks get put back in the fall, recognize that the "seconds" field can sometimes be more than 60, and so on. If you get into the habit of taking these shortcuts then you are likely to get caught out if you move outside the specific domain, and you ill be cursed as you introduce subtle and hard-to-find bugs based on invalid assumptions. Getting time-of-day issues right is hard.