sunrise / sunsite / correcting for summer time
am 25.03.2007 23:53:23 von Malcolm N
I've found how to display sunrise and sunset at a given location,
but can't find out how to get php to automatically allow for summer
time here in Europe ?.
This happened today - but I know the USA did it early this year - so
can you preset the date to do it ?.
echo ', sunrise time : ' .date_sunrise(time(), SUNFUNCS_RET_STRING,
55.000, -3.000, 90, 1);
I know I can manually change the last figure to add 1 hour to GMT -
but can php be used to do it automatically please
Malcolm
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: sunrise / sunsite / correcting for summer time
am 26.03.2007 00:15:21 von Niel Archer
Hi,=20
see the docs for the date() function. 'I' returns 0 or 1 indicating
Daylight Saving Time. However, it does this based on the settings for
your installation. i.e. if your webserver is running on a host
configured to U.S. time zone, it'll give U.S. DST results.
Note that, any method will only remain accurate until the goal posts
are moved next. The U.S. for example changed their DST dates last year
(end date moved back). Australia and other countries have also recently
changed. In these cases, either your code or the language need to be
updated after such changes.
Niel
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: sunrise / sunsite / correcting for summer time
am 28.03.2007 00:12:56 von Malcolm N
On Sun, 25 Mar 2007 23:15:21 +0100, Niel Archer
wrote:
>Hi,=20
> see the docs for the date() function. 'I' returns 0 or 1 indicating
>Daylight Saving Time. However, it does this based on the settings for
>your installation. i.e. if your webserver is running on a host
>configured to U.S. time zone, it'll give U.S. DST results.
>
Thanks
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php