|
Posted by Andy Hassall on 07/16/07 14:31
On Fri, 13 Jul 2007 14:31:31 -0000, Daz <cutenfuzzy@gmail.com> wrote:
>I'm making a JavaScript clock which works in real time, and supports
>every time zone. I am struggling to find a way to see when the clocks
>are set back or forwards in a specific time zone. Is there any way I
>can find this out with PHP without having to use some kind of
>intensive loop, which will probably lag out my server?
<?php
header("Content-type: text/plain");
$timezone = new DateTimeZone("BST");
var_export($timezone->getTransitions());
?>
http://uk.php.net/manual/en/ref.datetime.php
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|