Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    printf("%s hours, %s minutes, %s seconds\n",
       $dur->in_units(qw( hours minutes seconds ))
    );
    
  2. or download this
    1 hours, 19 minutes, 378 seconds
    
  3. or download this
    ...
    
    ...
    printf("%s hours, %s minutes, %s seconds\n",
       $dur3->in_units(qw( hours minutes seconds ))
    );
    
  4. or download this
    1 hours, 19 minutes, 378 seconds
    1 hours, 25 minutes, 18 seconds   # All of the minutes had 60 seconds.
    1 hours, 25 minutes, 19 seconds   # One of the minutes had 61 seconds.