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

Method get12Hour

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

获取小时 ( 12 ) @param calendar Calendar @return 小时

(final Calendar calendar)

Source from the content-addressed store, hash-verified

826 * @return 小时
827 */
828 public static int get12Hour(final Calendar calendar) {
829 if (calendar != null) return calendar.get(Calendar.HOUR);
830 return -1;
831 }
832
833 // =
834

Callers

nothing calls this directly

Calls 3

getCalendarMethod · 0.95
parseLongMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected