eclipse-paho / eclipse-paho/paho.mqtt.python

How to convert timestamp from MQTTmessage into current datetime

Open
#888 1 comment 0 reactions 0 assignees View on GitHub
Status: Available
Dominant language
Python
Stars
2.4k
Forks
742
Avg merge
12d 48m
Merged PRs (30d)
1

Description

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?

Contributor guide

Open the contributing guide

Research direction

Start with the mosquitto documentation excerpt for log_timestamp_format and compare it with the reported value 140224139 and the Unix timestamp 1744760934. Determine what documentation or guidance is needed to explain the value; done means a reader can understand the timestamp format and how to interpret it as a datetime.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.