use POSIX; print strftime("%Y-%m-%d %H:%M:%S", localtime),"\n"; # This displays the following: # 2002-04-28 10:52:32 # (Assuming I ran this when I was typing. {g})