It is currently June 24th, 2019, 8:19 pm
Our most popular Tips and Tricks from the Rainmeter Team and others
- Posts: 19268
- 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.