/** * Parse a string to a ValueTime. * * @param s the string to parse * @return the time */ public static ValueTime parse(String s) { try { return fromNanos(DateTimeUtils.parseTimeNanos(s, 0, s.length(), false)); } catch (Exception e) { throw DbException.get(ErrorCode.INVALID_DATETIME_CONSTANT_2, e, "TIME", s); } }
nanos = DateTimeUtils.parseTimeNanos(s, dateEnd + 1, timeEnd, true); if (tz != null) { int year = DateTimeUtils.yearFromDateValue(dateValue);