是否上午 @param calendar Calendar @return true yes, false no
(final Calendar calendar)
| 1057 | * @return {@code true} yes, {@code false} no |
| 1058 | */ |
| 1059 | public static boolean isAM(final Calendar calendar) { |
| 1060 | if (calendar != null) { |
| 1061 | return calendar.get(GregorianCalendar.AM_PM) == Calendar.AM; |
| 1062 | } |
| 1063 | return false; |
| 1064 | } |
| 1065 | |
| 1066 | // = |
| 1067 |
nothing calls this directly
no test coverage detected