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 IBM MQ Support » Find the time a message is being added to a MQ

Post new topic  Reply to topic
 Find the time a message is being added to a MQ « View previous topic :: View next topic » 
Author Message
yasaboy
PostPosted: Mon Jun 30, 2014 12:13 pm    Post subject: Find the time a message is being added to a MQ Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

Hi,

I am using the
Code:
pMsgDesc -> PutDate
option to get the time a particular message was added to a MQ while poping it out from MQ. And it returns a value which is quite different to current system time.
Code:
eg: pMsgDesc -> PutDate returns (20140630 19580552)
while
Code:
the date command in the terminal returns (Tue Jul  1 01:29:01 IST 2014).


What is the proper way to find the time when the message is added to the MQ using MQPUT ? Thanks
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Jun 30, 2014 1:02 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

The MQMD contains put date and time GMT. Search google for the format of the MQMD fields.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jun 30, 2014 10:08 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

As the 'date' command is showing 'IST' as your locale (Indian Standard Time), you might have noticed that IST = GMT/UTC + 05:30.

Add that to the time in the MQMD and .... well, you can see the result for yourself.

Just accept that WMQ uses GMT/UTC times everywhere in the world. How else would you trace messages going over many timezones, say from IST to PST?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
yasaboy
PostPosted: Tue Jul 01, 2014 8:19 pm    Post subject: Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

@ jedi thanks. Found it

bruce2359 wrote:
The MQMD contains put date and time GMT. Search google for the format of the MQMD fields.
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 IBM MQ Support » Find the time a message is being added to a MQ
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.