PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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?
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.