How to convert GMT time to local time?

R

Ronald van Aalten

Hi,

Is there an easy way to convert GMT times to local times and vice versa? Do
I have to use the extended mapi TimeZone property? I use VB6 and redemption.

Ronald van Aalten
 
D

Dmitry Streblechenko

In Redemption :) - that's what Roland said he is using.
There is really nothing magic about these functions, just
FileTimeToLocalFileTime() and LocalFileTimeToFileTime() Win API functions
with some conversion between FILETIME/SYSTEMTIME/DATETIME.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
M

Michael

Actually I think some extra little magic is required to account for Day
Light savings time .... or at least I needed to account for this ... I
remember having all sorts of problems if the data I was converting was in
Day Light Savings and the current time was not Daylight Savings ..
 
R

Ronald van Aalten

Thanks Dmitry,

I did look for a mapiutils method on your website but is's not listed in on
the MAPIutils page. Consider upgrading the page...
While you are doing this also consider adding an explanation on the
mapitables page of the RELOP constants. I couldn't find them and it took me
a while to figure them out (ok, I'm a simple VB programmer...).

Ronald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top