Help for this page

Select Code to Download


  1. or download this
    sub dhm {
        my $time = shift;
    ...
    
        return $time;
    }
    
  2. or download this
      time2string(time, bold => 1) # Bold text for IRC.
    
  3. or download this
      time2string(time, long_format => 1) # Use long(er) unit names.
    
  4. or download this
      time2string(time, long_format => 2) # Full length unit names.
    
  5. or download this
     time2string(time, format => 'Sec Min Hour Day Week Month Year'); # De
    +fine your own unit names.
    
  6. or download this
      time2string(time, spacing => 0, format => 'Sec Min Hour Day Week Mon
    +th Year'); # Turn off spacing.
    
  7. or download this
      dhm(time) # For things that don't need a lot of spiff.