Currently TimeCodec formats Long instances as e.g. 54012123450000; since these values potentially exceed Integer.MAX_VALUE, they need to be enclosed in simple quotes when formatted, e.g. '54012123450000'.
Otherwise an attempt to create a query string containing such values will result in a syntax error:
A yet better idea would be to format such time values in a more meaningful representation, e.g. 15:00:12.123450000.