If I were doing this for simplicity's sake I would alter this to be:
     $timestamp = mktime();
     $date_output = date("Y-m-d H:i A", $timestamp);
Then store the $timestamp in the (pseudo)database.  Any operations I need to
compare times will be done on the $timestamp data rather than the
$date_output data which contains a bunch of string data that would otherwise
have to be compensated for with more code.
--
phill


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to