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;
	}
@Test
	public void timeToSecondTest() {
		int second = DateUtil.timeToSecond("00:01:40");
		assertEquals(100, second);
		second = DateUtil.timeToSecond("00:00:40");
		assertEquals(40, second);
		second = DateUtil.timeToSecond("01:00:00");
		assertEquals(3600, second);
		second = DateUtil.timeToSecond("00:00:00");
		assertEquals(0, second);
	}