Revision: 39205
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 14, 2011 19:58 by rso
Initial Code
private String getCurrentTime(){ Calendar c = Calendar.getInstance(); int year = c.get(Calendar.YEAR); //(2)���年��� int month = c.get(Calendar.MONTH) + 1; //(3)������� int day = c.get(Calendar.DATE); //(4)������� int hour = c.get(Calendar.HOUR_OF_DAY); //(5)������� int minute = c.get(Calendar.MINUTE); //(6)������� int second = c.get(Calendar.SECOND); //(7)������� return (year + "/" + month + "/" + day + " " + hour + ":" + minute + ":" + second); }
Initial URL
Initial Description
Initial Title
Get Currnet time as a String
Initial Tags
Initial Language
Java