TIME_FORMAT(SEC_TO_TIME(uptime),'%Hh %im') Google:Converter segundos em duração de tempo legível
select hostname,type,TIME_FORMAT(SEC_TO_TIME(uptime),'%Hh %im') from devices where uptime < 86400 Isso lhe dará horas e minutos de tempo de atividade. Você também pode adicionar segundos, se quiser, lendo o
TIME_FORMAT método.https:// /dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html#function_time-format