How to convert Unix timestamp (ie. 1286374738) to hhmmss?
Use one of the many converter sites: http://convert-unix-time.com http://www.epoch-converter.com
... they also have converting examples for many programming languages.
date('His', $timestamp);
where $timestamp contains the unix timestamp , H = 24-hour format of an hour with leading zeros , can use h = 12-hour format of an hour with leading zeros ; i = Minutes with leading zeros , s = Seconds, with leading zeros