SPrelewicz
Programmer
Does anyone know of any existing function available, or offer advice on how to implement the following:
Given the time in minutes, how can I convert it onto a time string?
Example:
480 converts to 8:00 AM. 510 converts to 8:30. 525 converts to 8:45. 0 converts to 12:00 AM. This seems simple enough, and I could implement it with a long function accounting for all cases by dividing by 60, but I'm hoping someone knows of saomething existing or can offer an efficient solution.
Given the time in minutes, how can I convert it onto a time string?
Example:
480 converts to 8:00 AM. 510 converts to 8:30. 525 converts to 8:45. 0 converts to 12:00 AM. This seems simple enough, and I could implement it with a long function accounting for all cases by dividing by 60, but I'm hoping someone knows of saomething existing or can offer an efficient solution.