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 » Casting Char to Timestamp

Post new topic  Reply to topic
 Casting Char to Timestamp « View previous topic :: View next topic » 
Author Message
Omuch
PostPosted: Mon Mar 11, 2013 5:07 am    Post subject: Casting Char to Timestamp Reply with quote

Acolyte

Joined: 23 Mar 2012
Posts: 54

Hi

version 6.1.0.11

1. the LOCAL_TIMEZONE of the broker is 2 hours but when I run this:

Code:

DECLARE var CHARACTER CAST (CURRNET_TIMESTAMP AS CHARACTER  FORMAT 'IU') ;


(for example CURRNET_TIMESTAMP = 2013-03-11 14:00:00)

I get this :
Code:

var =2013-03-11T14:00:00[b]+05:30[/b]

in stand of +02:00

2.When i cast var to time stamp :
Code:

DECLARE time TIMESTAMP CAST(var AS TIMESTAMP FORMAT 'IU');


i get :
Code:

time = 2013-03-11 08:30:00


help please..
[/code]
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Mar 11, 2013 10:09 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You may want to review this article as it talks about how char->timestamp casting is supposed to work.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fak05616_.htm

IIRC, there are some APARs concerning timezone issues. You may like to open a PMR to see if any apply to your service level.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
adubya
PostPosted: Mon Mar 11, 2013 11:20 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

Can you paste in the output from mqsiservice -t in here ?
Back to top
View user's profile Send private message Send e-mail
Omuch
PostPosted: Mon Mar 11, 2013 1:02 pm    Post subject: Reply with quote

Acolyte

Joined: 23 Mar 2012
Posts: 54

lancelotlinc wrote:
You may want to review this article as it talks about how char->timestamp casting is supposed to work.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fak05616_.htm


I alredy read it, didnt help much.
Back to top
View user's profile Send private message
Omuch
PostPosted: Wed Mar 13, 2013 12:07 am    Post subject: Reply with quote

Acolyte

Joined: 23 Mar 2012
Posts: 54

adubya wrote:
Can you paste in the output from mqsiservice -t in here ?


I ran it and it shows:
Code:

local time = real time
UTC time  = two hours back
standard offset from GMT=330

how can i change it?[/code]
Back to top
View user's profile Send private message
rekarm01
PostPosted: Wed Mar 13, 2013 10:48 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Omuch wrote:
how can i change it?

For which operating system?
Back to top
View user's profile Send private message
Omuch
PostPosted: Thu Mar 14, 2013 9:22 am    Post subject: Reply with quote

Acolyte

Joined: 23 Mar 2012
Posts: 54

rekarm01 wrote:
Omuch wrote:
how can i change it?

For which operating system?


Linux
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 » WebSphere Message Broker (ACE) Support » Casting Char to Timestamp
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.