- or download this
my ($min, $hour, $day, $mon, $year) = (localtime(time))[1..5];
- or download this
(undef, $min, $hour, $day, $mon, $year) = localtime(time);
- or download this
$starttime = "$mon"."$day"."$hour"."$min"."$year";
- or download this
$starttime = "$mon$day$hour$min$year";
- or download this
my $starttime = sprintf '%4d%02d%02d%02d%02d',
sub { $_[5]+1900, $_[4]+1, $_[3], $_[2], $_[1] }->(loc
+altime);
}