Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Time format in rtmc pro expression


Makada Oct 25, 2017 05:43 AM

Hi,

In rtmc pro ive got the following expresssion shown below.

The thing is, the time it is displaying is always like so:

25-10-2017 07:30:59

25-10-2017 07:22:59

The seconds are always 59 and i dont want it to show the date, just the time.

StartRelativeToNewest(nSecPerDay, OrderCollected);

Timestamp(MaxRunOverTimeWithReset("Server:CR1000.ToroHourly.WindSpd_ms_Max",Timestamp("Server:CR1000.ToroHourly.WindSpd_ms_Max"),Reset_Daily))


JDavis Oct 26, 2017 03:03 PM

Look at the help for the FormatTime expression. I believe you can do what you want with FormatTime.


Makada Oct 26, 2017 06:24 PM

Thanks for the reply,

ive watched the examples and came up with this, but its still showing without seconds in the time, always :00...

FormatTime(Timestamp("Server:CR1000.ToroHourly.WindSpd_ms_Max"),$"%X on %a, %b %d, %Y (day %j of the year)")


Makada Oct 28, 2017 10:54 AM

I think it really is something simpel with signes  and/or numbers,  but i can figure it out.

Log in or register to post/reply in the forum.