Skip to content

How to convert timestamp from MQTTmessage into current datetime #888

@mitchell-pioneer

Description

@mitchell-pioneer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: AvailableNo one has claimed responsibility for resolving this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions