|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Find the time a message is being added to a MQ |
« View previous topic :: View next topic » |
Author |
Message
|
yasaboy |
Posted: Mon Jun 30, 2014 12:13 pm Post subject: Find the time a message is being added to a MQ |
|
|
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 |
|
 |
bruce2359 |
Posted: Mon Jun 30, 2014 1:02 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9471 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 |
|
 |
smdavies99 |
Posted: Mon Jun 30, 2014 10:08 pm Post subject: |
|
|
 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 |
|
 |
yasaboy |
Posted: Tue Jul 01, 2014 8:19 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|