At 18:07 13.03.2003, Tom Ray said:
[snip]
>Is there an easy way to display the epoch time given by time() in a human
>readable format? Basically, if I do $time = time(); and the insert that
>data into my mysql database and then pull that information out again
On Thu, 13 Mar 2003 12:07:33 -0500
"Tom Ray" <[EMAIL PROTECTED]> wrote:
> Is there an easy way to display the epoch time given by time() in a
> human readable format? Basically, if I do $time = time(); and the
> insert that data into my mysql database and then pull that information
> out again how
Is there an easy way to display the epoch time given by time() in a
human
readable format? Basically, if I do $time = time(); and the insert that
data into my mysql database and then pull that information out again
how
do I make it look like 2003-03-13 or a variant of that?
If you are pulling a d
Is there an easy way to display the epoch time given by time() in a human
readable format? Basically, if I do $time = time(); and the insert that
data into my mysql database and then pull that information out again how
do I make it look like 2003-03-13 or a variant of that?
TIA
--
PHP General M
> How do I compare time in php?
>
> Eg. If I have a mysql time field I retrieve stored in $result[0][0] how do
I
> say :
>
> if (($result[0][0] > $result[0][0] plus ten minutes) && ($result[0][0] >
> '00:00:00')){
MySQL and PHP timestamps are in different formats. MySQL uses MMDDHHMMSS
and PH
Why wouldn't you use gmdate:
http://www.php.net/manual/en/function.gmdate.php
and then increment it yourself by an offset?
Scott
-Original Message-
From: anders nawroth [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
How do I get the current time() for Central European Time
(= GMT +01:00).
I want it to work wherever the server stands.
How can I get the difference between server time
and GMT, for instance?
A. Nawroth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
7 matches
Mail list logo