View Single Post
That's an interesting idea.

You could experiment with something like this, for example:

Code:
-- For Example 4027 remaining minutes
set TotalMins to 4027

-- Build a six digit string
set strHoursLeft to (TotalMins div 60) as string
if length of strHoursLeft < 2 then
	set strHoursLeft to "0" & strHoursLeft
end if

set strAdditionalMins to (TotalMins mod 60) as string
if length of strAdditionalMins < 2 then
	set strAdditionalMins to "0" & strAdditionalMins
end if

set strMinuteur to strHoursLeft & strAdditionalMins & "00"