fork(2) download
  1. #!/usr/bin/perl
  2. # your code goes here
  3.  
  4. use POSIX qw(strftime);
  5.  
  6. my $date = strftime "%m/%d/%Y %I:%M:%S %p", localtime;
  7. print $date;
  8.  
Success #stdin #stdout 0.01s 6908KB
stdin
Standard input is empty
stdout
07/04/2016 12:19:26 PM