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 » WebSphere Message Broker (ACE) Support » time stamp conversion JMS to MB

Post new topic  Reply to topic
 time stamp conversion JMS to MB « View previous topic :: View next topic » 
Author Message
satyadash76
PostPosted: Wed Feb 21, 2007 1:24 am    Post subject: time stamp conversion JMS to MB Reply with quote

Newbie

Joined: 28 Apr 2006
Posts: 5

Hi,

I am getting 1.171601880169E12 as value of timestamp property in JMS header as which is converted into
1.171601880169E+12 by JMSMQTransport Node.

I want convert 1.171601880169E+12 value into timestamp value supported by MB.


please suggest if any body have any idea on this.

thanks in advance.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 21, 2007 3:24 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Did you try using CAST? Do you want to do this in ESQL, or in Java?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Feb 21, 2007 3:30 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

the timestamp of jms header is long value (number of milliseconds since the standard base time = January 1, 1970, 00:00:00 GMT)

convert the miliseconds to seconds

Add the seconds to January 1, 1970, 00:00:00 using interval
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Wed Feb 21, 2007 3:56 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Or use java to convert the long back into a date/Calendar object. Then use a simple date formater and you may get a date in text format. If you have a broker in v6 it will handle that...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » time stamp conversion JMS to MB
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.