I'm having a problem getting the uptime measure to display the correct hours. If i have everything on 1 line it works fine... Format="%4!i!d %3!i!h %2!i!m"
...this works fine. But, if I try to seperate them onto individual lines, it goes wrong. I DID use AddDaysToHours=1 and it worked just fine for a few hours, but reverted back to the wrong hours, now I can't get it back. Right now it should say "2 days 21 hours 42 minutes" but I get "2 days 69 hours 42 minutes"
I am not using Uptime measure with such separate format... but reading the document for the measure, I think it is an expected behavior. Document says;
AddDaysToHours
If set to 1 and if %4 (days) is not used in the Format option, %3 (hours) is incremented by days * 24.
You don't use "%4" in [MeasureUpTimeH] measure, so hours is incremented by days*24 (2*24=48) to 69.
And you divided Day part with [MeasureUpTimeD] measure, so %4 in the measure is 2.
Finally, output is 2 and 69 and 42.
I wonder why you have to separate Uptime measure to three? If you want to display DMH to separate line, you can insert linefeed constant #CRLF# as Format="%4!i!d#CRLF#%3!i!h#CRLF#%2!i!m".
If you are using separate lines you should consider using the standard Format Codes
I apologise if this is incorrect since the uptime measure seems to always have the complex format codes rather than the above, but perhaps in this case it may be just that, simpler format codes.
If you aim to display Day, Hour, Minutes in flexible layout with separate measures/meters, I have another idea, but didn't test actually. If it doesn't work, sorry.
Add %4 format code to the [MeasureUpTimeH] measure, so day value is not incremented to hour value, and remove day part by substitution like as;
mak_kawa wrote: ↑October 15th, 2020, 6:04 am
I wonder why you have to separate Uptime measure to three? If you want to display DMH to separate line, you can insert linefeed constant #CRLF# as Format="%4!i!d#CRLF#%3!i!h#CRLF#%2!i!m".
If I am misunderstanding at all, sorry.
The numbers are in a triangle, days on top and hours and minutes on the bottom. It's ok though I figured it out. It should be AddDaysToHours=0
I read the help wrong, it should be a 0 not a 1.
mak_kawa wrote: ↑October 15th, 2020, 7:16 am
I am not sure, but the format code of the Uptime measure is different from those of the Time measure?
Yep, they are for sure. In an Uptime measure the formats for days, hours, minutes and seconds are these: %4, %3, %2 and %1 accordingly. The formats of the same elements in Time measures are %d, %H (or %I in 12 hours format), %M respectivelly %S. However note that these formats mean and are a used a little bit differently in the two type of measures.