Fork me on GitHub
#datomic
<
2017-10-17
>
timgilbert19:10:36

Is there a quick way to get from a datomic t value to a java.util.DateTime representing the (approximate) time that it occurred? I could swear I saw a function or something at one time, but now I can't find it

favila19:10:09

(->> t d/t->tx (d/entity db ) :db/txInstant)

favila19:10:59

java.util.DateTime? you mean java.util.Date?

timgilbert19:10:34

Ah, I had forgotten about :db/txInstant. Thanks @favila!