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

Method getWeek

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

获取星期数 ( 1 - 7、日 - 六 ) @param calendar Calendar @return 星期数

(final Calendar calendar)

Source from the content-addressed store, hash-verified

672 * @return 星期数
673 */
674 public static int getWeek(final Calendar calendar) {
675 if (calendar != null) return calendar.get(Calendar.DAY_OF_WEEK);
676 return -1;
677 }
678
679 // =
680

Callers 1

isWeekMethod · 0.95

Calls 3

getCalendarMethod · 0.95
parseLongMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected