Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Number-Denominal CPAN distribution.

Report information
The Basics
Id: 92146
Status: resolved
Priority: 0/
Queue: Number-Denominal

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.004
Fixed in: (no value)



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
Implemented in v1.101, which just got shipped. Thanks for the suggestion.