[code=python] ¶
import time ¶
time.strftime ('%m/%d/%Y %H:%M') ¶
time.strftime ('%m/%d/%Y %H:%M', time.time()) ¶
[/code] ¶

Below is another more verbose option. ¶

[code=python] ¶
import datetime ¶

def date(unixtime, format = '%m/%d/%Y %H:%M'): ¶
d = datetime.datetime.fromtimestamp(unixtime) ¶
return d.strftime(format) ¶
[/code] ¶
Examples: ¶

[code=python] ¶
>>> import time ¶
>>> date(time.time()) ¶
'03/20/2012 18:10' ¶
[/code] ¶

To look at all the formats, please refer to: ¶

http://docs.python.org/library/time.html#time.strftime