Solved

Time Zone Information

Posted on 1997-08-04
3
227 Views
Last Modified: 2010-04-03
I'm working with Delphi3 and I want to know in which unit is declared the type: TIME_ZONE_INFORMATION. It is very very important to have an awnser as soon as possible.
Thanks in advance! =)
0
Comment
Question by:fmichaud061597
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:rvaken
ID: 1340517
Look in the registry under HKEY_Current_User -> Control Panel -> International You find all information needed there... You can find out the timezone code by using the MSDN cd's from Microsoft or consult their WebSite....
0
 

Author Comment

by:fmichaud061597
ID: 1340518
I want to know in which unit it is declared.
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1340519
As far as I know, there is no unit in Delphi which declares TIME_ZONE_INFORMATION.
However, you can create your own unit and declare it by yourself.

In order to do so i attached the declaration in C from the
microsoft header file called winbase.h (found in the visual c++ package)
You need to translate it to Delphi.

#define TIME_ZONE_ID_INVALID (DWORD)0xFFFFFFFF
.
.
typedef struct _TIME_ZONE_INFORMATION {
    LONG Bias;
    WCHAR StandardName[ 32 ];
    SYSTEMTIME StandardDate;
    LONG StandardBias;
    WCHAR DaylightName[ 32 ];
    SYSTEMTIME DaylightDate;
    LONG DaylightBias;
} TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;

WINBASEAPI
BOOL
WINAPI
SystemTimeToTzSpecificLocalTime(
    LPTIME_ZONE_INFORMATION lpTimeZoneInformation,
    LPSYSTEMTIME lpUniversalTime,
    LPSYSTEMTIME lpLocalTime
    );

WINBASEAPI
DWORD
WINAPI
GetTimeZoneInformation(
    LPTIME_ZONE_INFORMATION lpTimeZoneInformation
    );

WINBASEAPI
BOOL
WINAPI
SetTimeZoneInformation(
    CONST TIME_ZONE_INFORMATION *lpTimeZoneInformation
    );
.
.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi application Soap connection 5 151
Mobile Keyboard covers the display of the TMemo 3 113
Magic Software info 18 152
Delphi: Connect to running MS Outlook 4 199
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question