import java.util.*;
class getCalender
{
public static void main(String[] args)
{
Calendar calendar=Calendar.getInstance();
calendar.setTime(new Date());
int 年=calendar.get(Calendar.YEAR),
月=calendar.get(Calendar.MONTH)+1,
日=calendar.get(Calendar.DAY_OF_MONTH),
星期=calendar.get(Calendar.DAY_OF_WEEK)-1,
hour=calendar.get(Calendar.HOUR_OF_DAY),
minute=calendar.get(Calendar.MINUTE),
second=calendar.get(Calendar.SECOND);
System.out.println("现在的时间是:");
System.out.println(""+年+"年"+月+"月"+日+"日"+"星期"+星期);
System.out.println(""+hour+"时"+minute+"分"+second+"秒");
}
}