Support Board
Date/Time: Tue, 01 Apr 2025 22:45:25 +0000
Post From: Clock - Study Indicator
[2022-12-06 18:49:03] |
JohnR - User831573 - Posts: 327 |
DKtrades, I don't think it is possible if you are using the SC funcitons to display the Date- Time. Because in the end you are displaying an SC function, which is looking for an Int I'm self taught, so I am a little light in many SC and C++ capabilities. From looking at the SC docs, Hour is defined as an int from SC. To change the line you are asking about, it could be Input_HourOffset.SetFloat(0.0); But you would also need to change other lines that refer to it to also be float from int. Like the following if (Input_HourOffset.GetFloat() != 0.0) { Hour += Input_HourOffset.GetFloat(); Also in the line above if you use the "Hour' variable, it is going to round to an Int, losing your fractional amount. I could be wrong, Hope this helps, JohnR |