Java tutorial
import java.util.GregorianCalendar; import java.util.TimeZone; public class Main { public static void main(String[] args) { GregorianCalendar cal = new GregorianCalendar(TimeZone.getDefault()); System.out.println(cal.getTime()); } }