How to get date and time of the last transaction in datomic db?
3 answers
You probably want to let
get the result of your stream function before datomic/t->tx
. Then use that to query for a transaction object (an implicitly created object for each transaction). Each transaction object has an attribute :db/txInstant
that is implicitly added during the transaction. The value of this attribute is what you would like to pass to the static method java.util.Date.
.
0
source to share