Du kan bruge funktionen som nedenfor:
select FROM_UNIXTIME(UNIX_TIMESTAMP(),'%a %b %d %H:%i:%s UTC %Y');
output vil være:
'Wed Feb 05 05:36:16 UTC 2014'
I din forespørgsel
select COUNT(DISTINCT devices) AS "Devices",
FROM_UNIXTIME(measure_tab.time,'%a %b %d %H:%i:%s UTC %Y') as d from measure_tab where
measure_tab.time >= 1375243200 and
measure_tab.time < 1375315200;
For mere info kan du tjekke dokumentationen:http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_from-unixtime
Du kan se sql fiddle:http://sqlfiddle.com/#!2/a2581/20357