How to print formatted (!) the current timestamp?

I want to print the current time(stamp) in formatted style. The following does not work: print STDOUT "Now=%Y%m%d-%H%M\n", localtime(time); What is wrong? How else can I print out a formatted timestamp? Tom