---------------------------- LocalTime | ---------------------------- # ±¾µØÊ±¼ä # LocalTimeÀàÓÃÀ´±íʾһÌìÖеÄʱ¼ä # ´ó²¿·Ö·½·¨¶¼ÓÐ LocalDate ÏàËÆ,»»ÌÀ²»»»Ò© # ¹¹Ôì(ͨ¹ýLocalTime¾²Ì¬·½·¨) LocalTime LocalTime.now(); * »ñȡϵͳµ±Ç°Ê±¼ä * '»á¾«È·µ½ºÁÃë¼¶±ð' * 22:34:43.851 LocalTime LocalTime.of(int hour,int minute,int second); * ¸ù¾ÝÖ¸¶¨Ê±¼ä´´½¨LocalTime¶ÔÏó LocalTime parse(String time); * ¸ù¾Ý×Ö·û´®,½âÎö³ÉLocalDate¶ÔÏó * LocalTime time = LocalDate.parse("13:25:11"); LocalTime parse(String time,DateTimeFormatter matter); * ¸ù¾Ý×Ö·û´®,ºÍmatterµÄ¸ñʽ,½âÎö³ÉLocalDate¶ÔÏó ---------------------------- LocalTime-·½·¨ | ---------------------------- # ¶ÁÈ¡Ïà¹Ø int getHour(); * ·µ»ØÐ¡Ê± int getMinute(); * ·µ»Ø·ÖÖÓ int getSecond(); * ·µ»ØÃë # ÅäÖÃÏà¹Ø LocalDateTime atDate(LocalDate date); * ÉèÖà LocalDate ¶ÔÏó,¼ÓÉϵ±Ç°µÄ LocalTime * ×éºÏΪ LocalDateTime LocalTime plusHours(int year); * Ìí¼Ó¶àÉÙСʱ LocalTime plusMinutes(int month); * Ìí¼Ó¶àÉÙ·ÖÖÓ * '»¹ÓкܶàÌí¼ÓµÄAPI,¶¼Ò»Ñù' LocalTime minusHours(long hoursToSubtract); * ¼õÈ¥Ö¸¶¨µÄСʱÊý * '»¹Óкܶà¼õÈ¥µÄAPI,¶¼Ò»Ñù' # ¸ñʽ»¯Ïà¹Ø String formar(DateTimeFormatter matter); * ¸ù¾Ý DateTimeFormatter ·µ»Ø±»¸ñʽ»¯ºóµÄʱ¼ä×Ö·û´®