Re: Need help with timestamp....

From: Date: Fri, 06 Jul 2001 00:52:57 +0000
Subject: Re: Need help with timestamp....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56418@lists.php.net to get a copy of this message
if you want the current time all you have to do is this.. :) echo date("l d F, Y g:i A") that will out put: Thursday 05 July, 2001 7:52 PM or whatever time your system is at it will echo it in that format.. hope that helps! jay ----- Original Message ----- From: "JustinS" <justins@columbus.rr.com> To: <php-general@lists.php.net> Sent: Thursday, July 05, 2001 7:46 PM Subject: [PHP] Need help with timestamp.... I want to stamp the CURRENT time on my page... as of right now it's reading ====== Wednesday 31 December, 1969 ====== i assume im not doing something correctly... the following is how i have the line written atm define('SUB_BAR_TITLE', strftime(DATE_FORMAT_LONG, (date ("F d, Y h:i:s A")))); no, i did not write this script, which is the reason i dunno what the heck im doing -- im curious if anyone has some insight on the problem Thanks in advance.

« previous php.general (#56418) next »