#how can I get from this seconds to next hour

1 messages · Page 1 of 1 (latest)

tired canopy
glossy basin
#

@tired canopy To the total of seconds of an hour we subtract the minutes that have passed * 60 (to get seconds of minutes that have passed) and we also subtract the seconds that have passed

local currentTime = DateTime.now():ToLocalTime()
local minutesPassed = currentTime.Minute
local secondsPassed = currentTime.Second

local secondsUntilNextHour = 3600 - minutesPassed * 60 - secondsPassed
tired canopy
#

i already solved

#

but thx