Good Morning!

   I had to do something like this for a work project.

   I used GpTimezone (http://17slon.com/gp/gp/gptimezone.htm) & DateUtils. I 
made a test app that uses them. You are welcome to look at it.

http://www.greatdaydan.com/TZTest.zip

Cya...Dan'l

 _________________________________
Every day with Jesus is a Great! day
and He loves YOU!
_________________________________
Are you a Companion of Jesus?
www.CompanionsOfJesus.com
_________________________________



----- Original Message ----
From: emmanuellamy <[email protected]>
To: [email protected]
Sent: Thu, August 5, 2010 8:01:20 AM
Subject: [delphi-en] Converting local to UTC time

Hi everybody,

Does anyone know of a free component that converts the local time to UTC and 
back to another time zone local time? My searches led me to the microsoft 
"mscorlib.dll" that exposes the TimeZoneInfo class which contains a certain 
number of properties and methods that can do do all that:

"Local" instantiates a TimeZoneInfo object that represents the local time zone.

"Utc" instantiates a TimeZoneInfo object that represents the UTC zone.

"ConvertTime(DateTime, TimeZoneInfo, TimeZoneInfo)" converts a time from a time 
zone to time in another timezone. for an extensive list of the members exposed 
in the TimeZoneInfo class see:

http://msdn.microsoft.com/en-us/library/system.timezoneinfo.aspx

Unfortunately, I don't seem to be able to exploit those valuable resources, and 
I am looking for an alternate way to convert time from time zone to other time 
zones. Any tips or help would greatly appreciated. TIA.

Emmanuel




------------------------------------

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [email protected]! Groups Links




      

Reply via email to