Create Calendar from timezone - Android java.util

Android examples for java.util:Timezone

Description

Create Calendar from timezone

Demo Code

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

public class Main {
  private static final TimeZone TIME_ZONE = TimeZone.getTimeZone("Asia/Tokyo");

  public static Calendar firstDate() {
    Calendar cal = Calendar.getInstance(TIME_ZONE);

    return cal;/*from  w ww . j a v  a  2 s  .  c  om*/
  }

}

Related Tutorials