Using 24hr Clock in Thingtweets


I have a Thingtweet: "Measurements %%datetime%% Comment" The tweet will send the time as say: 5:23pm I want it in 24hr format = 17:23 I have scoured the site and I cant find any way of doing this in a tweet. Also that would be local time, is it possible to use UTC ?

Arthur Monks
Arthur Monks 2022 年 4 月 18 日

Thanks for the reply. Its surprising that the 24hr format is not the default. I will leave it as it is.

Christopher Stapels
Christopher Stapels 2022 年 4 月 18 日 (編集日時: 2022 年 4 月 18 日)

Unfortunately that is not possible directly with the replacement tags. What you can do is to use MATLAB analysis to write the format you wish to a field in another channel, and then tweet the contents of that field.

The datetime () function provides a host of formatting options. Upper case 'HH' is for 24 hour time with the name value pair 'Format'.

タグ

タグが未入力です。