problem with getting system time using calender......
hi
i have created a instance of calender and using it i want to access system time (hh mm ss )but in the middle of code there is difference in the min and sec from the system clock... where as at the begining of code it was giving exact time as shown by the clock.....
why it is so.....
Calendar tmp = Calendar.getInstance();
System.out.println("minute:"+tmp.get(Calendar.MINUTE)+"\n");
System.out.println("hour:"+tmp.get(Calendar.HOUR)+"\n");
System.out.println("SECONDS:"+tmp.get(Calendar.SECOND)+"\n");
any suggestions.......
thanks in advance........

