File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

conversion between timezones

 
tarik elberrak
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I want to manage dates in differents timezones and want to take in consideration daylights.
I have some reports that will be sent at a specified hour in different timezones and blocked when it is a holiday.
I have some dates corresponding to holidays in differents countries.

for Example : on 01 January 2006 at 7h00 PM, my report must be sent to Tokyo but the time in tokyo is 02 January 2006 2h00 AM (if the 02 January 2006 is a holiday I must block the report), so I need to know the time in Tokyo and detect the change of days.

NB : paris use daylight but not Tokyo

any helps
Thanks
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recommend you to take a look at the following examples in the Java Almanac.

Retrieving Information in All Available Time Zones
Getting the Current Time in Another Zone
Converting Time between Time Zones
[ October 06, 2006: Message edited by: Edwin Dalorzo ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic