in java/main/src/main/java/com/epam/deltix/hdtime/Parsers.java [108:115]
public static int sign(CharSequence from, int ofs, ParsedValue dst) throws ParseException {
if (ofs >= from.length())
throw new ParseException(from.toString(), ofs);
int sign = from.charAt(ofs) == '-' ? -1 : 0;
dst.sign = (byte) sign;
return ofs - sign;
}