CountDown with TimeStamps convert to TimeString
Hi, i cant figure it out... i just want to show a CountDown in (hh:mm:ss) a Label.
This piece of code calculates the the time till the future time is now. Code:
local timeRemainingSecs = GetDiffBetweenTimeStamps(timeInFuture , GetTimeStamp()) It would be perfect when the string would be with leading zeros --> e.g. 12:03:07 (not 12:3:7) Thanks |
You are probably looking for:
Lua Code:
I'm pretty sure if you plug in a timestamp difference, you'll still get what you are looking for. You can read more about it here. There are ways to explicitly format different aspects of the string (%X is a standard time format) |
All times are GMT -6. The time now is 12:44 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI