RE: [PHP] Adding X days to a time string...
| From: | Jay Blanchard | Date: | Fri, 21 Nov 2003 16:13:13 +0000 |
| Subject: | RE: [PHP] Adding X days to a time string... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170584@lists.php.net to get a copy of this message | ||
[snip]
Storing a date in seconds (Unix timestamp) in a database and want to add
X number of days to this. So I want to extend a time by say 5 days, what
is the best method to handle this?
It's always stored as a timestamp for a day not an exact time. So dates
are stored as day (March 5th, 2003).
[/snip]
http://www.php.net/strtotime