code: public static long jodaToCalciteTimestamp(final DateTime dateTime, final DateTimeZone timeZone)
    {
      return dateTime.withZone(timeZone).withZoneRetainFields(DateTimeZone.UTC).getMillis();
    }
docs: Calcite expects "TIMESTAMP" types to be an instant that has the expected local time fields if printed as UTC.
  
  @param dateTime joda timestamp
  @param timeZone session time zone
  
  @return Calcite style millis