GregorianCalendar(Locale aLocale) constructor from GregorianCalendar has the following syntax.
public GregorianCalendar(Locale aLocale)
In the following code shows how to use GregorianCalendar.GregorianCalendar(Locale aLocale) constructor.
import java.util.GregorianCalendar; import java.util.Locale; /* ww w . j a va2 s.c o m*/ public class Main { public static void main(String[] args) { GregorianCalendar cal = new GregorianCalendar(Locale.ENGLISH); System.out.println(cal.getTime()); } }
The code above generates the following result.