Solved

Time in Germany by using EST(USA).

Posted on 2006-04-13
Medium Priority
757 Views
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.
0
Question by:n4narik
• 2

LVL 25

Expert Comment

ID: 16447135
Germany is 6 hours ahead of us (EST)

so with vbscript:

NOW() is the time right now

just do:
0

LVL 25

Expert Comment

ID: 16447150
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

LVL 15

Accepted Solution

OMC2000 earned 2000 total points
ID: 16447306
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

LVL 11

Expert Comment

ID: 16448409
OMC2000 dropped a letter 'l' (ell) off of his url.  It's at:

http:Q_20103151.html#5998113

Peace and joy.  mvan
0

Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…