in reply to Output of Date

Try this:
print scalar localtime($timestamp), "\n";