Re: Date functions

From: Date: Mon, 14 Aug 2000 18:44:20 +0000
Subject: Re: Date functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11664@lists.php.net to get a copy of this message
hi, try using something like: $oneDay=60*60*24; //to get the seconds in one day $tempDate1=mktime(0,0,0,1,1,2000); $tempDate2=mktime(0,0,0,2,2,2000); $DaysBetween=(int)((tempDate1 - tampDate2 )/$oneDay); _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/_/ viva technologies _/ gstrein andreas "Always listen to the experts; they'll tell you what can't be done and why. Then do it." - Robert A. Heinlein > Help. I want to add dates together and find out the day differences > between to dates. Is there an easy way to do that? How about adding days > to a date? I need some advanced date functions but I didn't see anything > in the PhP manual. As far as I know, there isn't. But I easylly made mine using the ones available. ;-) "And I'm happy, because you make me feel good, about me." - Melvin Udall ----------------------------------------------------------------- Martín Marqués email: martin@math.unl.edu.ar Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar ----------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#11664) next »