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

Method getSecond

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

获取秒数 @param calendar Calendar @return 秒数

(final Calendar calendar)

Source from the content-addressed store, hash-verified

980 * @return 秒数
981 */
982 public static int getSecond(final Calendar calendar) {
983 if (calendar != null) return calendar.get(Calendar.SECOND);
984 return -1;
985 }
986
987 // =
988

Callers 2

isSecondMethod · 0.95
getIntervalTimeFolderMethod · 0.95

Calls 3

getCalendarMethod · 0.95
parseLongMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected