rmck wrote:
> I cant get localtime to print in "mm-dd-yyyy hh:mm:ss" , I keep
> getting it like so "Sun Dec 28 03:35:19 2003"

POSIX::strftime gives you complete control over the format.

  use POSIX 'strftime';
  print strftime('%m-%d-%Y %H:%M:%S', localtime), "\n";

perldoc POSIX

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to