I need to perform the following conversion:
0 -> 12.00AM 1800 -> 12.30AM 3600 -> 01.00AM ... 82800 -> 11.00PM 84600 -> 11.30PM
The simplest one-liner simply ignores the date:
Time.at(82800).utc.strftime("%I:%M%p") #-> "11:00PM"