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 » Convert TIME to representation in milliseconds as long

Post new topic  Reply to topic
 Convert TIME to representation in milliseconds as long « View previous topic :: View next topic » 
Author Message
guyos
PostPosted: Thu Apr 20, 2006 6:13 am    Post subject: Convert TIME to representation in milliseconds as long Reply with quote

Novice

Joined: 04 Jan 2006
Posts: 24

How do I convert TIME or DATETIME to time in milliseconds as a long type (to pass to some java application receiving the message)
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 20, 2006 6:31 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak05616_.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
guyos
PostPosted: Thu Apr 20, 2006 7:12 am    Post subject: Reply with quote

Novice

Joined: 04 Jan 2006
Posts: 24

This isnt trivial - I got the following statement which does the conversion:

(1000. * (((DAYS(CURRENT TIMESTAMP) - DAYS('1970-01-01')) * 86400.) + MIDNIGHT_SECONDS(CURRENT TIMESTAMP))) + (MICROSECOND(CURRENT TIMESTAMP)/1000)
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 20, 2006 2:59 pm    Post subject: Reply with quote

Grand High Poobah

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

Have you tried just using the char representation and parsing it in Java?
Might be a little bit easier but take more time to process.
_________________
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 » Convert TIME to representation in milliseconds as long
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.