date math question
| From: | Charles Kline | Date: | Fri, 28 Mar 2003 05:15:47 +0000 |
| Subject: | date math question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-141371@lists.php.net to get a copy of this message | ||
I am storing my dates as unix timestamp (epoch). Am I right in assuming that if I need to add or subtract days from this it is done in seconds?
So for example if I have the timestamp 1041397200 and I wanted to subtract 24 hours from it I would do this:
$newtime = $orig_time - 86400;
Thanks,
Charles