in java/main/src/main/java/com/epam/deltix/hdtime/Parsers.java [57:73]
static int component(final CharSequence from, int ofs, final ParsedValue dst, long scale) throws ParseException {
int n = from.length();
if (ofs >= n)
throw new ParseException(from.toString(), ofs);
int x = digit(from, ofs++);
for (; ofs < n; ++ofs) {
int c = from.charAt(ofs) - '0';
if (c < 0 | c > 9)
break;
x = x * 10 + c;
}
dst.x += scale * x;
return ofs;
}