Set date/time format

Hello,

when looking at the timestamps produced in meshtastic --info, I see that they are all in the UNIX Epoch seconds. Is there a setting to convert these to a readable date and time?

Thanks,

Karl Baker

Hello,

Currently, there is not. Here’s the relevant code for running --info without --dest, and running --info (always). Both call google.protobuf.json_format.MessageToJson, which performs the conversion of the raw data (in protobuf format) into JSON, which is then output as human-readable text.

I don’t see a good way way to modify how MessageToJson converts the data, but you might be able to insert something at those points in the code to modify the JSON data from a UNIX-time format to a human-readable format.

You could use the --nodes option to display a formatted list with human-readable timestamps.

1 Like