Author |
Message
|
Artemio |
Posted: Wed Oct 22, 2003 7:19 am Post subject: Configure the time in MQ |
|
|
 Novice
Joined: 11 Sep 2003 Posts: 21
|
How configure I the time of MQSeries, because is diferent the date when I execute the Unix command 'date' and the time an date when I get message with my client program |
|
Back to top |
|
 |
fcotait |
Posted: Tue Oct 28, 2003 3:01 am Post subject: |
|
|
 Acolyte
Joined: 28 Feb 2002 Posts: 63 Location: Sao Paulo - Brazil
|
Artemio,
I didn´t undestand very well what you need. Let´s try:
MQ always use the GMT timezone.
If your UNIX system is using a GMT +1 for example, the MQ time will be 1 hour different the UNIX local time.
This is apply a Windows system too (I know only Windows and Unix systems).
I don´t remeber if this can be modify.
Good luck _________________ Filipe Cotait
IBM Certified System Administrator - WebSphere MQ
IBM Certified Specialist - MQSeries, WebSphere MQ Integrator |
|
Back to top |
|
 |
Artemio |
Posted: Tue Oct 28, 2003 3:29 pm Post subject: |
|
|
 Novice
Joined: 11 Sep 2003 Posts: 21
|
Thanks, so I need to make a funcition to transform the time GMT timezone into my local time, or Do I have another option? |
|
Back to top |
|
 |
Artemio |
Posted: Tue Oct 28, 2003 3:35 pm Post subject: |
|
|
 Novice
Joined: 11 Sep 2003 Posts: 21
|
Thanks, so I need to make a funcition to transform the time GMT timezone into my local time, or Do I have another option?
I need to know the time when the message arrive in a Manager Queue and I have a big difference between UNIX time and MQ time (+6 hours aprox., live in Mexico city) |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Oct 28, 2003 5:24 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Artemio wrote: |
Thanks, so I need to make a funcition to transform the time GMT timezone into my local time, or Do I have another option? |
Your programming language should have a built-in function for converting gmttime to localtime - look at your standard libraries. I know that C and Java do. And I can't imagine you're using VisualBasic on a Unix System, but VisualBasic probably has one too.
Artemio wrote: |
I need to know the time when the message arrive in a Manager Queue and I have a big difference between UNIX time and MQ time (+6 hours aprox., live in Mexico city) |
+6 hours sounds very much like the time difference between GMT and Mexico City time. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Artemio |
Posted: Tue Oct 28, 2003 6:26 pm Post subject: |
|
|
 Novice
Joined: 11 Sep 2003 Posts: 21
|
In C What funcition is used????
thanks! |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Oct 29, 2003 4:54 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Artemio wrote: |
In C What funcition is used????
|
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Artemio |
Posted: Wed Oct 29, 2003 9:05 am Post subject: |
|
|
 Novice
Joined: 11 Sep 2003 Posts: 21
|
JeffLowrey wrote: |
Artemio wrote: |
In C What funcition is used????
|
|
The function is localtime_r(), thanks a lot!
 |
|
Back to top |
|
 |
|