You can get the unix timestamp by moving ts in the key of the Kafka message by 18 bits to the right.
ts