Time in Germany by using EST(USA).

I need a way to find out the time in Germany by using the time in my computer: Eastern Standard Time in the US. The problem comes when the Daylight savings time is in action.
n4narikAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kevp75Commented:
Germany is 6 hours ahead of us (EST)

so with vbscript:

NOW() is the time right now

just do:
DateAdd("h",6,NOW())
0
kevp75Commented:
I don't believe Daylight Savings Time will matter, as far as I know they will always be 6 hours ahead of us.....that is, unless the tilt and orbit of the earth changes in our lifetime :)

www.worldtimezone.com
0
OMC2000Commented:
Daylight Savings Time will matter, because there are different dates when they start and stop Daylight Savings period for EST and CET.

check answer based on the database table at
http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20103151.htm

or just use general approach, add subtract difference in hours from your time.
Change number of hours depending on current date.
Make functions:
f1, which calculates difference between your time and GMT, you will always get correct difference for your time zone due to OS functionality.
f2, which calculates difference between CET (Central Europe Time - Germany time) and GMT,
it takes daylignt saving into consideration. If current date is within daylight savings period, function returns 2, otherwise 1.

sum of the results of these two functions is number of hours, which you should subtract from you current time.

Regularly, in Germany, the "daylight savings period" starts at the last sunday in march (2:00 AM), and ends at the last sunday in october (3:00 AM)

I guess it's not a big deal to calculate the date of the last sunday for march and october.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mvan01Commented:
OMC2000 dropped a letter 'l' (ell) off of his url.  It's at:

http:Q_20103151.html#5998113

Peace and joy.  mvan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.