Re: GMT / TimeZone modifications
| From: | Rasmus Lerdorf | Date: | Thu, 11 Apr 2002 02:05:22 +0000 |
| Subject: | Re: GMT / TimeZone modifications | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92487@lists.php.net to get a copy of this message | ||
setenv() the appropriate timezone, then use strtotime() or mktime() to
create a timestamp. Then setenv() to the other timezone and use date() or
strftime() to convert back into a legible format.
-Rasmus
On Thu, 11 Apr 2002, Richard KS wrote:
> Greetings.
>
> I was wondering if there are any good ways of converting a date into another
> time zone? For instance, from GMT+8 to GMT+1, is this possible in some way?
>
> Like if I have a date written 09.04.2002 14:11, I would like to format it
> into GMT+1.. Any solutions?
>
> Thanks alot
>
> --
> Richard,
> oblivion creations
> http://oblivion.lunamorena.net
> oblivion@lunamorena.net
> +46 (0) 736 849 531 for sure contact..
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>