TrevorRage Posted September 7, 2020 Posted September 7, 2020 He set world time through SetTime and wrote a command to get time (GetTime). The time to display is not correct, and what is this format?
Tonytza Posted September 7, 2020 Posted September 7, 2020 (edited) Check this Basically, don't use GetTime. Rather, create 2 int variables (hour and minute) and you update (set) those too when you use .SetTime. And then, instead of .GetTime, you check those 2 variables and you'll have to format the time as you wish. Edited September 7, 2020 by Tonytza 1
TrevorRage Posted September 8, 2020 Author Posted September 8, 2020 10 часов назад, Tonytza сказал: Check this Basically, don't use GetTime. Rather, create 2 int variables (hour and minute) and you update (set) those too when you use .SetTime. And then, instead of .GetTime, you check those 2 variables and you'll have to format the time as you wish. Thanks, I'll try.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now