Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    $earlier = strftime "%H:%M", localtime($earlier);
    
    print "The current time is $now\nThe earlier time is $earlier\n";
    
  2. or download this
    =Output
    The current time is 15:40
    The earlier time is 12:25