MCPcopy Create free account
hub / github.com/afkT/DevUtils / isAM

Method isAM

lib/DevApp/src/main/java/dev/utils/common/DateUtils.java:1059–1064  ·  view source on GitHub ↗

是否上午 @param calendar Calendar @return true yes, false no

(final Calendar calendar)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getCalendarMethod · 0.95
parseLongMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected