Subject: | Limited precision of return |
It would be nice if you could limit the precision of the returned value to only containing a few of the classifications. E.g. if the most significant value is weeks, I probably don't care about the seconds.
How about a hashref of options as the optional final argument?
my $time_str = denominal( $sec, \"time", { precision => 2 } );
would then limit it to
N weeks, M days
N days, M hours
N hours, M minutes
N minutes, M seconds
N seconds
--
Paul Evans