Re: Date functions
| From: | Martin A. Marques | Date: | Tue, 15 Aug 2000 10:25:25 +0000 |
| Subject: | Re: Date functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11773@lists.php.net to get a copy of this message | ||
On Mon, 14 Aug 2000, gstrein andreas wrote:
> $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);
Yes I have a similar code for getting yesterdays.
But I think there could be more date functions in php. Like Alan Cox
allways says, "It hasn't been coded because YOU didn't do it!", so it
may be time to start coding. ;-)
Saludos... ;-)
"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
-----------------------------------------------------------------