Convert total minutes to time of day

I have a thermostat that I’m pulling data over an API. One of the items is a “Hold Until” value that indicates the time that the thermostat will return to a normal schedule. In the API call, that value is represented by the number of minutes from midnight. So, 510 = 8:30am, 780 = 1:00pm, 1439 = 11:59pm, etc.

I want to include this on a HabPanel widget showing a “human readable” time of day. Would it be easiest to use a transformation map to make that conversion or in the API call? What formulas would be needed. I can provide the API call if needed but it’s pretty long.

A JavaScript Transformation would be the easiest method.
Documentation