Reply to Re: Find when DST comes into effect for a specific time zone

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация