I'm in China and I've a friend who is in other countries. e.g. UK, USA, New Zealand...
I know his country's name in English and time zone there.
But how can I know whether his country is using DST now or not? Any ideas?
Thank you!
I'm in China and I've a friend who is in other countries. e.g. UK, USA, New Zealand...
I know his country's name in English and time zone there.
But how can I know whether his country is using DST now or not? Any ideas?
Thank you!
Check this script might help you. Reference:
http://www.irt.org/
Well, I just cobbled together this bit of code to identify whether the currently selected time zone uses summer adjustment and whether it is currently in effect. This was written for Windows Scripting Host, but replace
WScript.Echo
withwindow.alert
or whatever you prefer for whichever environment you choose to run it in...Here is an example using JSONP and some Yahoo services: