It is currently July 7th, 2022, 3:38 am
Our most popular Tips and Tricks from the Rainmeter Team and others
- Posts: 22527
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
While it can be tempting to jump to using a Lua function
to convert a number of seconds, perhaps returned by some Time measure, into a formatted string of days, hours, minutes, seconds, there is a way using the Uptime measure
native to Rainmeter that can work pretty well with a bit less effort.
Code: Select all
Format="%4!i! days %3!i! hours %2!i! minutes %1!i! seconds"
Substitute="^1 days":"1 day"," 1 hours":" 1 hour"," 1 minutes":" 1 minute"," 1 seconds":" 1 second"
You do not have the required permissions to view the files attached to this post.