Page 1 of 1

General question about timestamps

Posted: Mon Oct 18, 2004 4:29 am
by tores
hi.

When I work with time I use timestamps, because their more convenient to work with than regular dates. So when I want to add e.g. three days to a date I just add 3 * 86400, which is three days in seconds. But I'm not sure if this is the correct way of doing it. Could such operations produce an erroneous result when dealing with things like daylight-saving time?

regards tores

Posted: Mon Oct 18, 2004 4:32 am
by feyd
daylight savings has nothing to do with the actual timestamp. Adding 3 * 86400 is perfectly fine, as time doesn't repeat itself (for us at least), even when talking about daylight savings.