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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to