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