PC Review


Reply
Thread Tools Rate Thread

how to do time zone adjustment?

 
 
news.ms.com
Guest
Posts: n/a
 
      17th Oct 2003
Hi,

Any class in mfc that I can use to perform time zone adjustment? THanks.

Raymond.


 
Reply With Quote
 
 
 
 
Pablo
Guest
Posts: n/a
 
      17th Oct 2003

news.ms.com <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Any class in mfc that I can use to perform time zone adjustment? THanks.


Depending on how much time zone adjustment you want, ie, truly
international, a few lines of code should suffice. There are some
complications when dealing with the U.S. where some states don't observe
DST, so timezone differences are 'different' during different times of year.
All of this is primarily and excuse to type the word 'different'. But that
was a joke.

If you're truly doing international time zoning, then you're gonna have to
figure out (you probably are already aware of this) all of those derned
middle eastern countries which sometimes have 30 minute and 45 minute zone
seperations.

Still, though, once you figure out your zones, you'd create a table or
matrix of geographic locations and a zone index #, and simply add or
subtract hours on the clock based on the zone index- with a clever
identifier for the pinko commie 30 minute, or non DST observing zones.

Paul



 
Reply With Quote
 
Christian ASTOR
Guest
Posts: n/a
 
      18th Oct 2003
news.ms.com wrote:

> Any class in mfc that I can use to perform time zone adjustment? THanks.


Time zones are stored in registry (HKLM/Software/.../Time Zones) (T.Z.
Editor)
Get/SetTimeZoneInformation() for the current one.

 
Reply With Quote
 
kliff
Guest
Posts: n/a
 
      24th Oct 2003
This is not MFC classes, but it can convert time to any format you want
(CTime - time_t, COleDateTime - DATE) and have a support for converting
to/from any timezone. Description see at
http://www.codeproject.com/datetime/dtz.asp

"news.ms.com" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Any class in mfc that I can use to perform time zone adjustment? THanks.
>
> Raymond.
>
>



 
Reply With Quote
 
K_Lee
Guest
Posts: n/a
 
      27th Oct 2003
Christian ASTOR <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> news.ms.com wrote:
>
> > Any class in mfc that I can use to perform time zone adjustment? THanks.

>
> Time zones are stored in registry (HKLM/Software/.../Time Zones) (T.Z.
> Editor)
> Get/SetTimeZoneInformation() for the current one.



If you just like to do copy-paste some example,

http://www.slink-software.com/W/SL_T...0/LN_513#L_510

Sorry, GetTimeZoneInformation only. But it tells you about arguments,
structures that's needed.
 
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
Time zone changes to wrong Time zone every couple of days diesel Windows XP Help 4 23rd Mar 2009 02:21 AM
Time Zone Adjustment RichardM Microsoft Outlook 1 14th Jan 2008 12:31 AM
Outlook time zone adjustment - can it be turned off? Lenard Gunda Microsoft Outlook 1 1st Jan 2005 05:28 AM
Outlook time zone adjustment - can it be turned off? Lenard Gunda Microsoft Outlook Calendar 1 1st Jan 2005 05:28 AM
how to do time zone adjustment? news.ms.com Microsoft Windows 2000 Applications 4 27th Oct 2003 03:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:30 PM.