### Question:
Time { public static Time getTimeByCalendar(Calendar calendar) { int year = calendar.get(Calendar.YEAR); int month = calendar.get(Calendar.MONTH); int day = calendar.get(Calendar.DAY_OF_MONTH); int hour = calendar.get(Calendar.HOUR_OF_DAY); int minute = calendar.get(Calendar.MINUTE); int second = calendar.get(Calendar.SECOND); return Time.createTime(year, month, day, hour, minute, second); } Time(); private  Time(int year, int month, int date, int hour, int minutes, int seconds); static Time createTime(int year, int month, int date, int hour, int minutes, int seconds); static Time getTimeByCalendar(Calendar calendar); boolean isBefore(Time when); String getReadableTime(); String getDateReadable(); String getTimeReadable(); int getDate(); void setDate(int date); int getMonth(); void setMonth(int month); int getYear(); void setYear(int year); int getMinutes(); void setMinutes(int minutes); int getHour(); void setHour(int hour); int getSecond(); void setSecond(int second);  }### Answer:
@Test public void create_time_from_calendar(){ Time timeByCalendar = Time.getTimeByCalendar(Calendar.getInstance()); System.out.println("t"); }