Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for sorttime2.pl

(view source code of sorttime2.pl as plain text)

  1. #! perl
  2.  
  3. # SortTime.pl,  Version 2.00
  4. # Display "sorted" time (HHmmSS)
  5. # Written by Rob van der Woude
  6. # http://www.robvanderwoude.com
  7.  
  8. # Parse time string
  9. ($sec,$min,$hour) = (localtime)[0,1,2];
  10.  
  11. # Display result, correctly formated
  12. printf("\nSortTime = %02d%02d%02d\n", $hour, $min, $sec);
  13.  

page last uploaded: 2017-07-06, 12:37