http://blog.csdn.net/liwenfeng1022/article/details/6534182
Calendar calendar = Calendar.getInstance();
int year = calendar.get(Calendar.YEAR); // 年int month = calendar.get(Calendar.MONTH) + 1; // 月
int day = calendar.get(Calendar.DATE); // 日
int hour = calendar.get(Calendar.HOUR_OF_DAY); // 時
int minute = calendar.get(Calendar.MINUTE); // 分
int second = calendar.get(Calendar.SECOND); // 秒