Re: Newbie question - current date - time

From: Date: Wed, 14 Nov 2007 17:49:11 +0000
Subject: Re: Newbie question - current date - time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264503@lists.php.net to get a copy of this message
Check out "date" function. <? echo date("r", time()); ?> Prints out nice local time, what you need can be made by changing the "r" option. Have a look at the manual for alternatives to "r" liek Y for year, etc... so far ----- Ursprüngliche Nachricht ----- Von: "cool7@hosting4days.com" <cool7@hosting4days.com> Datum: Donnerstag, November 15, 2007 6:40 am Betreff: [PHP] Newbie question - current date - time An: php-general@lists.php.net > Hi Folks, > > Newbie question : > > - how do I get and display the current date? > - how do I get and display the current time? > > I see the getdate function - but I'm not sure if this is the right > functionor how to display it.... > > http://www.php.net/manual/en/function.getdate.php > > -- > Thanks - RevDave > Cool @ hosting4days . com > [db-lists] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#264503) next »