I'm sure this is simple, yet it isn't working, so I am wondering if someone can help me. I want to convert a number which represents the amount of time connected in seconds to be in days, hours, minutes, seconds for a plugin in Lua script.
Assuming the variable is called time_secs and I want the final string to be called time_string, how would it be done?
One extra requirement if possible is that it will only display the time in hrs or days if it is over 1 hr or 1 day.
I was using:
time_hrs = time_secs%3600
time_mins = time_secs%60
but it didn't seem to work write.
Thanks,
Neves
(also I don't get e-mail replies to these posts, yet my e-mail is working, can that be reset?)
Assuming the variable is called time_secs and I want the final string to be called time_string, how would it be done?
One extra requirement if possible is that it will only display the time in hrs or days if it is over 1 hr or 1 day.
I was using:
time_hrs = time_secs%3600
time_mins = time_secs%60
but it didn't seem to work write.
Thanks,
Neves
(also I don't get e-mail replies to these posts, yet my e-mail is working, can that be reset?)