Re: Unix Timestamp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add mktime(1,0,0,1,5,1970) to your unix timestamp. Then you will have the
timestamp of the fifth day plus the hours and minutes of your original
timestamp.

Note that mktime(1,0,0,1,5,1970) returns the number of seconds of 5 days.

--
Marc Soler

----- Original Message ----- 
From: "Chris Payne" <cjp@planetoxygene.com>
To: "php" <php-db@lists.php.net>
Sent: Monday, May 26, 2003 7:44 PM
Subject:  Unix Timestamp


Hi there everyone,

I have a unix timestamp, how can I add 5 days to the timestamp?  Basically,
I have a loop and I want it so that on the 5th cycle of the loop it does
something different to the database than the ones before it and after it.

Any help would be appreciated :-)

Chris



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux