PC Review


Reply
Thread Tools Rate Thread

How to convert GMT time to local time?

 
 
Ronald van Aalten
Guest
Posts: n/a
 
      16th Dec 2003
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


 
Reply With Quote
 
 
 
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      16th Dec 2003
Use MAPIUtils.HrGMTToLocal and MAPIUtils.HrLocalToGMT

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


"Ronald van Aalten" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Michael@oaklodge.com
Guest
Posts: n/a
 
      17th Dec 2003
Where are these defined ?


"Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Use MAPIUtils.HrGMTToLocal and MAPIUtils.HrLocalToGMT
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
>
> "Ronald van Aalten" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      17th Dec 2003
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


"(E-Mail Removed)" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Where are these defined ?
>
>
> "Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Use MAPIUtils.HrGMTToLocal and MAPIUtils.HrLocalToGMT
> >
> > Dmitry Streblechenko (MVP)
> > http://www.dimastr.com/
> > OutlookSpy - Outlook, CDO
> > and MAPI Developer Tool
> >
> >
> > "Ronald van Aalten" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Michael@oaklodge.com
Guest
Posts: n/a
 
      17th Dec 2003
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 ..

--

Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
"Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
>
> "(E-Mail Removed)" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Where are these defined ?
> >
> >
> > "Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > Use MAPIUtils.HrGMTToLocal and MAPIUtils.HrLocalToGMT
> > >
> > > Dmitry Streblechenko (MVP)
> > > http://www.dimastr.com/
> > > OutlookSpy - Outlook, CDO
> > > and MAPI Developer Tool
> > >
> > >
> > > "Ronald van Aalten" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > 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
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Ronald van Aalten
Guest
Posts: n/a
 
      17th Dec 2003
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

"Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Use MAPIUtils.HrGMTToLocal and MAPIUtils.HrLocalToGMT
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
>
> "Ronald van Aalten" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert UTC DateTime to Local Time (Not My Local Time) Jonathan Wood Microsoft ASP .NET 1 1st Nov 2009 12:08 AM
Convert stored UTC time to webuser's local time? Mark B Microsoft ASP .NET 1 24th Sep 2009 08:51 AM
Convert US Eastern Time to local .Net time? Mark B Microsoft ASP .NET 3 10th Sep 2009 12:33 AM
Convert US Eastern Time to local .Net C# time? Mark B Microsoft C# .NET 1 9th Sep 2009 02:46 PM
convert UTC to local time(system time) and vice vesra in VB.NET deepak Microsoft ASP .NET 1 6th Feb 2008 02:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:42 PM.