format the output of time function in perl code example
Example 1: perl get date
use POSIX;
use Time::Piece;
my $CurTime = localtime();
my $FormattedTime = $local_time->strftime('<FormatOfDateTime>');
use POSIX;
use Time::Piece;
my $CurTime = localtime();
print "[CurTime:$CurTime]\n";
Example 2: perl date format
use POSIX;
use Time::Piece;
my $CurTime = localtime();
my $FormattedTime = $local_time->strftime('<FormatOfDateTime>');
use POSIX;
use Time::Piece;
my $CurTime = localtime();
print "[CurTime:$CurTime]\n";