Is a particular city is on DST
Posted 29 March 2006 - 11:10 AM
I've checked the FAQs as well. I'm out of options.
Put simply, I need to know the time in London. My server is somewhere in the US. I don't know where. I don't care, as it is easy to find out what GMT is. I need to know though whether London is on DST or not. My server variables all apply to some US time zone which are currently incorrect, and though they change on similar dates, this is not sufficient for weeks like this one. London changes last weekend and the USA changes next weekend.
Is there a function or lookup method somewhere which can be used, or do I need to add a table with dates and times for London's DST changes?
[!--quoteo(post=146492:date=Aug 7 2004, 05:02 PM:name=toplay)--][div class=\'quotetop\']QUOTE(toplay @ Aug 7 2004, 05:02 PM) [/div][div class=\'quotemain\'][!--quotec--]
[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=16352&st=0entry59671\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...t=0entry59671[/a]
How to handle daylight savings time (DST) (same topic post):
[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=16352&st=0entry59851\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...t=0entry59851[/a]
Posted 31 March 2006 - 03:36 PM
Posted 31 March 2006 - 03:55 PM
I need to know though whether London is on DST or not.
You can also select a time zone with or without daylight saving time in the Control panel Date/Time Properties. For example (GMT) Casablanca, Monrovia does not support daylight saving time but (GMT) Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London does.
just from a search I got this link which included the above info
[a href=\"http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18310\" target=\"_blank\"]http://www.macromedia.com/cfusion/knowledg...cfm?id=tn_18310[/a]
Posted 31 March 2006 - 05:50 PM
Posted 31 March 2006 - 06:10 PM
Umm, thats for coldfusion which is totally different to PHP!
umm you asked whether London is on DST or not
I gave you and answer.
Maybe you should rephrase your question.
Posted 31 March 2006 - 06:19 PM
the 'date' function is quite useful, but depends on how/where, etc you want to use it. but from the manual:
[a href=\"http://uk2.php.net/date\" target=\"_blank\"]http://uk2.php.net/date[/a]
// whether in daylight savings time or not echo date("I"); // difference to GMT in hours (eg, +0200) echo date("O"); // as above, but with colin (eg +02:00) echo date("P");
hope that helps a little more
I say old chap, that is rather amusing!
Posted 03 April 2006 - 11:37 AM
I need to know what time it is in London.
I can easily get GMT, but sometimes London is not on GMT, like now, as it is on GST. I need to know if that is the case. I guess maybe I can find out how Britain decides its rules for these things and program it, but I'd have thought that there might be a function somewhere.
Thanks for trying.
Posted 03 April 2006 - 12:19 PM
Here is a bit of code that will scrape data from the world time site. All you need to do is purge the result of any extraneous data.
by changing the city value you could use it for most any major city in the world.
edit: I seem to be having problems posting code -
so you can
view the script output here [a href=\"http://nstoia.com/dst.php\" target=\"_blank\"]http://nstoia.com/dst.php[/a]
download the script here [a href=\"http://nstoia.com/dst.zip\" target=\"_blank\"]http://nstoia.com/dst.zip[/a]
Hope this is helpful.
Lite (aka hammer-man )
[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture
all the brothers were valiant!
Posted 03 April 2006 - 05:21 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users