Fork me on GitHub
#datomic
<
2019-04-11
>
hadils17:04:51

How do I find out when a datom was entered into the database? I think I have to use :db/txInstant but I don't know how to select.

marshall17:04:45

@hadilsabbagh18 https://github.com/cognitect-labs/day-of-datomic-cloud/blob/master/tutorial/log.clj#L28-L40 that section shows a minimal example of finding the transaction and the wall clock time that “something” happened in the db

marshall17:04:55

if you have the datom of interest in hand, you can pull the txInstant from the transaction entity, whose entity ID is the tx of the datom you’ve got

hadils17:04:49

That works! @marshall

👍 4