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

Method get24Hour

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

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

(final Calendar calendar)

Source from the content-addressed store, hash-verified

749 * @return 小时
750 */
751 public static int get24Hour(final Calendar calendar) {
752 if (calendar != null) return calendar.get(Calendar.HOUR_OF_DAY);
753 return -1;
754 }
755
756 // =
757

Callers 2

isHourMethod · 0.95
getIntervalTimeFolderMethod · 0.95

Calls 3

getCalendarMethod · 0.95
parseLongMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected