paho.mqtt.python icon indicating copy to clipboard operation
paho.mqtt.python copied to clipboard

How to convert timestamp from MQTTmessage into current datetime

Open mitchell-pioneer opened this issue 8 months ago • 0 comments

In the mosquitto documenation is says

log_timestamp_format format
Set the format of the log timestamp. If left unset, this is the number of seconds since the Unix epoch.

But I got this value looking at a messages for today 140224139

But the Unix epoch time is 1744760934 . So 140224139 can't be correct.

How can I convert this messages to a valid datetime?

mitchell-pioneer avatar Apr 15 '25 23:04 mitchell-pioneer