Code: Select all
[NDay]
Group=Time
Measure=Time
Format=%w
[ESec]
Group=Time
Measure=Calc
Formula=((604800+([NDay]-#TDay#)*86400+([NDay:Timestamp]%86400-(#THrs#*3600+#TMin#*60+#TSec#)))%604800)
MaxValue=604800
InvertMeasure=1
DynamicVariables=1
[Result]
Group=Time
Measure=Uptime
SecondsValue=[ESec]
Format=%4!02i! : %3!02i! : %2!02i! : %1!02i!
DynamicVariables=1
So I thought to have a daily countdown, that restarts once the target hour and minute was reached. This is my code for that:
Code: Select all
[TimeNow]
Measure=Time
Format=%H:%M:%S
IfConditionMode=1
DynamicVariables=1
[TimeTargeta]
Measure=Time
Format=%H:%M:%S
TimeStampFormat=%H:%M:%S
TimeStamp="#THrs1#:#TMin1#:#TSec1#"
DynamicVariables=1
[MeasureCalca]
Measure=Calc
Formula=([TimeNow:TimeStamp]%86400) - ([TimeTargeta:TimeStamp]%86400)
InvertMeasure=1
MaxValue=86400
DynamicVariables=1
[Resulta]
Measure=Uptime
SecondsValue=[MeasureCalca]
Format="%3!02i! : %2!02i! : %1!02i!"
Disabled=#ToggleA#
DynamicVariables=1
I tried to duplicate Yincognito's code to instead calculate #THrs1# to prevent that from happening, but it didnt seem to make a difference, or in other tries the clock somehow changed to 12 hour and not 24 hour.
Any help is appreciated. I know there is a formula, but my math is not as good as Yincognito's or any gurus in this forum.
I hope I posted enough code to go by. The skin has many personal information in it and I am avoiding making a copy that has none, but.. I will if that is needed.
Cheers