public static TimeString jodaToCalciteTimeString ( final DateTime dateTime , final DateTimeZone timeZone ) { // The replaceAll is because Calcite doesn't like trailing zeroes in its fractional seconds part. String timeString = TRAILING_ZEROS . matcher ( CALCITE_TIME_PRINTER . print ( dateTime . withZone ( timeZone ) ) ) . replaceAll ( "" ) ; return new TimeString ( timeString ) ; }
Calcite expects TIME literals to be represented by TimeStrings in the local time zone .