http://qs321.pair.com?node_id=327512


in reply to How can I format the output of localtime?

at it's simplest:

print scalar(localtime(time)),"\n";