@sysem Do you mean the timestamp the message was sent or received, or the current system time the broker sees?
The APIs can be told to insert send and receive timestamps through the session properties GenerateReceiveTimestamps and GenerateSendTimestamps .