It is currently April 25th, 2024, 12:39 am

Time as a Formula

Tips and Tricks from the Rainmeter Community
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Time as a Formula

Post by smurfier »

When you need to use multiple values from the Time Measure in a formula it can be much easier to create the formula in the format field of the Time Measure instead of using multiple Time Measures.

Code: Select all

[Time]
Measure=Time
Format=(%#H*60)+%#M

[TimeCalc]
Measure=Calc
Formula=[Time]
DynamicVariables=1
Just don't forget to use DynamicVariables as we need to use the String value of the Time measure.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Time as a Formula

Post by thatsIch »

very cool,
saves a lot of other calcs indeed!