in reply to solved: timestamp to localtime
My gut feeling is that an approach using who -b would be more portable across architectures and accurate to within a minute.
That and a good date manipulation package should be enough, unless you really really do need times down to the second.
David.