Jump to content

dxGetStatus


itHyperoX

Recommended Posts

Thanks.

How can i make this to "hoursToMinutes?

function minutesToHours(minutes)
    local totalMin = tonumber(minutes)
    if totalMin then
        local hours = math.floor(totalMin/60)--math.fmod(math.floor(totalMin/60), 24)
        local minutes = totalMin - hours*60--math.fmod(math.floor(totalMin), 60)
        if hours and minutes then
            return hours,minutes
        else
            return 0,0
        end
    end
end

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...