Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting a Hong Kong timezone to TokyoTime zone

user12303558Aug 1 2011 — edited Aug 1 2011
Hi everyone,

currently i have a converting issue regarding about timezone.

My application performs a transaction A and stores the server time (Hong Kong), 10:30:00 p.m into the database.
Based in what i know, the time zone for Hong Kong is GMT +8.

However when my Tokyo colleague prints a report based in that transaction. However he does not want to see the time based in Hong Kong. He wants the time to be display in Tokyo time zone.

Which means when my Tokyo colleague prints the report, he wants the time to be display as 11:30:00 p.m, instead of 10:30:00 p.m as the GMT for Tokyo is GMT +9.

How can i retrieve the time value from the database and parse/convert the time to Tokyo time zone?

Is there any java method/wrapper that can convert the one timezone to another?

Thanks for the advice:)

Edited by: user12303558 on Aug 1, 2011 8:09 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2011
Added on Aug 1 2011
4 comments
1,042 views