Re: Date Time
| From: | Sascha Cunz | Date: | Sat, 21 Sep 2002 03:04:57 +0000 |
| Subject: | Re: Date Time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117074@lists.php.net to get a copy of this message | ||
You have to add (or subtract) 28800 seconds to/from current time and use this
as the 2nd input to date.
echo date("Y-m-j", strtotime("now") + 28800);
Sascha
> Hi,,
>
> my server is located in the US and i live in Sweden, so when i try to run
> the following command i get a 8hour diffrence,, anyone got any idea of how
> to solve this?
>
> date("Y-m-j")
>
>
> regards
> Patrick