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";
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Getting a date/time in a certain format in a Windows and Linux environment
by davorg
in thread Getting a date/time in a certain format in a Windows and Linux environment
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |