import java.util.*; class KW { public static void main(String args[]) { System.out.println(new Date()); } }
import java.util.Date; class KW { public static void main(String args[]) { Date d=new Date(); System.out.println(d); } }
import java.util.Calendar; class KW { public static void main(String args[]) { Calendar c=Calendar.getInstance(); System.out.println(c.getTime()); } }
kodingwindow@kw:~$ javac KW.javakodingwindow@kw:~$ java KW Sun Apr 28 11:30:36 IST 2019 kodingwindow@kw:~$