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

Method getMonth

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

获取月份 ( 0 - 11 ) + 1 @param calendar Calendar @return 月份

(final Calendar calendar)

Source from the content-addressed store, hash-verified

518 * @return 月份
519 */
520 public static int getMonth(final Calendar calendar) {
521 if (calendar != null) return calendar.get(Calendar.MONTH) + 1;
522 return -1;
523 }
524
525 // =
526

Callers 3

isMonthMethod · 0.95
getYearMonthNumberMethod · 0.95
getMonthDayNumberMethod · 0.95

Calls 3

getCalendarMethod · 0.95
parseLongMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected