Time and date (PHP)

by spyka (http://www.spyka.net)

The following code will display the current time and date from the unix timestamp returned from time()

Code:
<?
// Will display something similar to:
// Sunday March 24, 2007 - 08:10:22

echo date("l F d, Y - h:i:s" ,time());

?>

Code demo

Not available

Help and comments

Discuss this and other scripts in our webmaster foruns

Learn more about our forums