convert iTime to readable time

 
I use iTime(NULL,0,0) in my EA to print the current time of the current candle.
It gives me number like this "1168434000", while on the chart the time reads 2007. 01.10 13:00 for the current candle.

Is it possible to convert this number (output of iTime) to the same time format mentioned above ?
 
Use TimeToStr function
 
that was fast :)

worked perfectly, many thanks,
Reason: