Convert Japan date and time to your local timezone


import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.TimeZone;

public class Main {
  public static void main(String[] argv) throws Exception {
    Calendar japanCal = new GregorianCalendar(TimeZone.getTimeZone("Japan"));
    japanCal.set(Calendar.HOUR_OF_DAY, 10); // 0..23
    japanCal.set(Calendar.MINUTE, 0);
    japanCal.set(Calendar.SECOND, 0);

    Calendar local = new GregorianCalendar();
    local.setTimeInMillis(japanCal.getTimeInMillis());
  }
}
Home 
  Java Book 
    Runnable examples  

Date TimeZone:
  1. Available Time Zones
  2. Current TimeZone
  3. Canoncial Timezone string
  4. Convert time between timezone
  5. Convert Current Time to Another Time Zone
  6. Convert Japan date and time to your local timezone
  7. Get TimeZone by name(America/New_York)