Thanks..

    So $date_output should only be used to print out current time, and
$timestamp is the one I should use to compare the dates?

- Richard

""Phillip Bow"" <[EMAIL PROTECTED]> wrote in message
998rej$16l$[EMAIL PROTECTED]">news:998rej$16l$[EMAIL PROTECTED]...
> 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]
>



-- 
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