in reply to Getting a date/time in a certain format in a Windows and Linux environment

POSIX::strftime should do the job on just about any platform.

.
#!/usr/bin/perl use strict; use warnings; use POSIX 'strftime'; my $start = strftime '%m/%d/%y %H:%M:%S', localtime; print "$start\n";
--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re: Getting a date/time in a certain format in a Windows and Linux environment
  • Download Code