Colin Lehmann wrote:
Hi,
I am writing a small utility to convert GMT to local time. To do this
I need to read the time zone I am in, set in Settings/Control
Panel/Date/Time.
Can anyone tell me how to get this value from the system?

Colin,

You could use the GetTimeZoneInformation routine:

 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/gettimezoneinformation.asp

This gives you the offset of the time zone from UTC, and whether the user currently has Winter or Summer time set (or neither...).

David

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to