ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » convert time which is in GMT time into local time using C++

Post new topic  Reply to topic
 convert time which is in GMT time into local time using C++ « View previous topic :: View next topic » 
Author Message
aninair
PostPosted: Wed Dec 04, 2002 3:36 am    Post subject: convert time which is in GMT time into local time using C++ Reply with quote

Novice

Joined: 30 Oct 2002
Posts: 10

I want to . I need a fuction which takes GMT time as a STRING and return a local time (IST) in STRING format..


I am getting a string.
string in GMT format : 05223015 (GMT Format ) .................................................IST equi: is 10:52:30

I got GMT Date and Time with following line.

printf("\n Date is ....%s....time is :...%s...",(char *)mq_message.putDate(),(char *)mq_message.putTime());


char * is converting it into string. puDate() and putTime() are returing object of ImqString.
and mq_message is an object ImqMessage class.
_________________
anita nair
Back to top
View user's profile Send private message
jsware
PostPosted: Wed Dec 04, 2002 6:12 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

If you're running under Windows, you could try using the Win32 API function called "SystemTimeToTzSpecificLocalTime".

This converts from a UTC time (which I think is the same as GMT) to a local time.

You'll need to look it up in the Platform SDK. This can be found at http://msdn.microsoft.com/library/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » convert time which is in GMT time into local time using C++
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.