Encontré la respuesta a mi pregunta.
aparentemente, también debe tener en cuenta la configuración de la zona horaria cuando calcule el valor de la época
- agregue 10 horas (10*60*60*1000 milisegundos) al valor de la época:el valor actual de la época está en GMT, así que para hacerlo EST (GMT+10), agregué esto.
-
Usó TO_TIMESTAMP_TZ en lugar de to_date
SELECT tableA.columnA,tableB.columnB FROM tableA INNER JOIN tableB ON tableA.aId = tableB.aId WHERE (TO_TIMESTAMP_TZ('1970-01-01 00:00:00 +10:00','yyyy-MM-dd hh24:mi:ss TZH:TZM') + ((tableB.epochValue+(10*60*60*1000))/60/60/24/1000)) > to_date('##FROM_DATE## +10:00', 'yyyy-MM-dd hh24:mi:ss TZH:TZM') AND (TO_TIMESTAMP_TZ('1970-01-01 00:00:00 +10:00','yyyy-MM-dd hh24:mi:ss TZH:TZM') + ((tableB.epochValue+(10*60*60*1000))/60/60/24/1000)) <= to_date('##TO_DATE## +10:00', 'yyyy-MM-dd hh24:mi:ss TZH:TZM');