[TH] timestamps function

Assigning to @tie-rack 

Utility function for getting timestamps for an entity. You pass in an (ideally) attribute and a value that can determine the entity, and get back a hash with :created-at, :updated-at, and :timestamps which are all the modification times in ascending order.

I'd like to make a version that works with :db/id, but there's something special about :db/id that I haven't sorted out how to specify it properly yet, and this will work in the meantime for most of our entities.

No particular card for this, it'll get used in some ballot-scout work.
I see your point, and it is something I hadn't thought of. I had in mind a convention that things like UUIDs would be basically immutable, always identifying the same entity, and as you point out, that convention isn't enforceable.

Is it enforceable on an entity? I can assert and retract all different shapes of data on a singular entity. If I change a voter into an election, because as far as I can tell datomic won't stop me, does the entity id form of timestamps still make sense?