We can use the following code snippet to check if the transaction is dirty or not
BindingContext bctx = oracle.adf.controller.binding.BindingUtils.getBindingContext();
if (bctx.findDataControlFrame(bctx.getCurrentDataControlFrame()).isTransactionDirty()) {
//show the timestamp
}
else{
//don't show
}