File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes conversion between timezones Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "conversion between timezones" Watch "conversion between timezones" New topic

conversion between timezones

tarik elberrak

Joined: Oct 06, 2006
Posts: 4
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
Edwin Dalorzo
Ranch Hand

Joined: Dec 31, 2004
Posts: 961
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 ]
I agree. Here's the link:
subject: conversion between timezones
It's not a secret anymore!