According to MSDN, "The string result produced by ctime contains
exactly 26 characters and has the form: Wed Jan 02 02:03:55 1980\n\0"
so we *do* want the leading zero on the day returned by strftime
p4raw-id: //depot/perl@26222
# Careful! strftime() is locale sensative. Let's take care of that
my $orig_loc = setlocale(LC_TIME, "C") || die "Cannot setlocale() to C: $!";
if ($^O eq "MSWin32") {
- is(ctime(0), strftime("%a %b %#d %H:%M:%S %Y\n", localtime(0)),
+ is(ctime(0), strftime("%a %b %d %H:%M:%S %Y\n", localtime(0)),
"get ctime() equal to strftime()");
} else {
is(ctime(0), strftime("%a %b %e %H:%M:%S %Y\n", localtime(0)),