Time format: Change timestamp to readable text

Hardware topics that do not fit in one of the other categories

Moderator: Mattk

Post Reply
Roger
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Tue Feb 27, 2018 10:57 am

Time format: Change timestamp to readable text

Post by Roger » Tue Feb 27, 2018 8:05 pm

For an html-output, I want to format the timestamp (example: “actual_localdate” or “alltime_wind0_speedmax_time“) to an custom format string. I probably have to use JS in html. But I hope that there are already (undocumented ?) possibilities in meteohub?

Example: Tiefsttemperatur: -9.7 °C am 20180227062212 --> Tiefsttemperatur: -9.7 °C am 27.02.2018 06:22 Uhr

Thank you!

Post Reply