Using 24hr Clock in Thingtweets

Arthur Monks 2022년 4월 18일
최근 활동 Arthur Monks답글: 2022년 4월 18일

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

태그

아직 태그를 입력하지 않았습니다.