If you want to represent instants as timestamps, you can write a custom serializer that applies on Instants and just encodes/decodes an integer. I’ve done that several times, effectively decoupling encoding from ergonomy.
If you want to represent instants as timestamps, you can write a custom serializer that applies on Instants and just encodes/decodes an integer. I’ve done that several times, effectively decoupling encoding from ergonomy.