Thread: Time Issues?
View Single Post
Old 06-11-2009, 11:13 AM   #7 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
Just a sidenote, you don't have to explicitly write the numbers there if you want the current time. You can just do this:

php Code:
echo date('d-m-Y H:i:s', time());
If you're going to do that, just leave out the second argument entirely, date('d-m-y H:i:s');
Salathe is offline  
Reply With Quote