Using 24hr Clock in Thingtweets

Arthur Monks on 18 Apr 2022
Latest activity Reply by Arthur Monks on 18 Apr 2022

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 on 18 Apr 2022

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 on 18 Apr 2022 (Edited on 18 Apr 2022)

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'.

Tags

No tags entered yet.