Horje
perl sprintf YYYYMMDD sample Code Example
[Solved] - perl sprintf YYYYMMDD sample Code Example
Try following codes
perl sprintf YYYYMMDD sample
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
my $now = sprintf("%04d-%02d-%02d %02d:%02d:%02d", $year+1900, $mon+1, $mday, $hour, $min, $sec);
Date: 2022-05-21 05:02:10
Category: perl
More for You