Rick wrote:
>
> It would be helpful to note which methods are
> affected by the limit. e.g., map and grep.
> Since only iterate handles large/unbounded
> sets, maybe it shouldn't be marked "deprecated".
Only count() and as_list() are limited, as it is
documented.
map() and grep() are not affected!
>
> On another noted, FWIW,
DateTime::Duration::in_units is somewhat
> inconsistent. E.g,
>
> DateTime::Duration->new(weeks=>1)->in_units('days')
>
> prints '7', as i would expect but
>
> DateTime::Duration->new(days=>1)->in_units('hours')
>
> prints '0', not '24'.
>
> I understand why this is from the code, but it
still seems
> counter-intuitive.
>
I think DateTime::Format::Duration does what you need.
I'm forwarding this to the datetime list.
- Flavio S. Glock