Float decimal to time second

I was wondering if there is a way to convert seconds to minute with decimal from float number. ex: 60*30=1800 sec for 30min
if I remove 10 sec so 1800-10=1790 1790/60=29.833333. how to get the .833333 to .50 here is my code:
StringTime = ("%.2f Minutes left : "):format(timerCount/60)
timerCount = ex:1790

I found that .83 / 1.66 = .50 this is what I need but how to divide the decimal point of a float

Most WoW time functions returns a value that is in seconds and converting wouldn’t be necessary.

However, if you got a large number in seconds and wanted to format it to hours, minutes, seconds, like
hours:min:seconds

I did some googling and there were several lua options out there that are basically like this:

function SecondsToClock(seconds)
  local seconds = tonumber(seconds)

  if seconds <= 0 then
    return "00:00:00";
  else
    hours = string.format("%02.f", math.floor(seconds/3600));
    mins = string.format("%02.f", math.floor(seconds/60 - (hours*60)));
    secs = string.format("%02.f", math.floor(seconds - hours*3600 - mins *60));
    return hours..":"..mins..":"..secs
  end
end

Looking at some wow api docs I see a C_DateAndTime utility “object” that has multiple time related functions
https://wow.gamepedia.com/Global_functions
https://www.townlong-yak.com/framexml/live/Blizzard_APIDocumentation#C_DateAndTime.AdjustTimeByDays
But they don’t have much documentation