public static int timeToSecond(String timeStr) {
		if (StrUtil.isEmpty(timeStr)) {
			return 0;
		}

		final List<String> hms = StrUtil.splitTrim(timeStr, StrUtil.C_COLON, 3);
		int lastIndex = hms.size() - 1;

		int result = 0;
		for (int i = lastIndex; i >= 0; i--) {
			result += Integer.parseInt(hms.get(i)) * Math.pow(60, (lastIndex - i));
		}
		return result;
	}
public static int timeToSecond ( String timeStr ) { if ( StrUtil . isEmpty ( timeStr ) ) { return 0 ; } final List < String > hms = StrUtil . splitTrim ( timeStr , StrUtil . C_COLON , 3 ) ; int lastIndex = hms . size ( ) - 1 ; int result = 0 ; for ( int i = lastIndex ; i >= 0 ; i -- ) { result += Integer . parseInt ( hms . get ( i ) ) * Math . pow ( 60 , ( lastIndex - i ) ) ; } return result ; }
HH:mm:ss 时间格式字符串转为秒数<br>
参考：https://github.com/iceroot

@param timeStr 字符串时分秒(HH:mm:ss)格式
@return 时分秒转换后的秒数
@since 3.1.2