Placeholder for displaying time variables as T#5d4h3m

  • magnusstril

    magnusstril - 2021-02-08

    I'm trying to make a textbox for flexible generic input/output to a TIME variable. What is the placeholder to display the time in T# format? Preferably without the actual 'T#'.
    Tried: %t but displays nothing, %t[] displays itself, %t['T#'] displays just 'T#'.

    E.g I want variables values T#1d5h2s to be represented as "1d5h2s" and "T#5s" as 5s in the same box. And allow similar flexible input as well. Can it be done without ST code string processing of the textfield?

  • i-campbell

    i-campbell - 2021-02-08

    For your exact formatting requirements you will need to make your own time to string function (and string to time).

    Otherwise you can use the time formatting like:
    %t[hh:mm tt]

    online help


Log in to post a comment.