Hi Bryan,

2009/10/7 Bryan K. Wright <bk...@ayesha.phys.virginia.edu>

>        I'm looking for a way to take a list of dates and
> spans like this:
>
>        Dec 1, 2009
>        Dec 2, 2009
>        Dec 3, 2009
>        Dec 20, 2009
>        Jan 5-7, 2010
>
> and turn them into a human-readable expression like this:
>
>        Dec 1-3 and 20, 2009, and Jan 5-7 2010
>
> Does a module already exist that can do this?
>

I don't know one.

However you should have a look at DateTime::Span and DateTime::SpanSet to
build a set span that you will be able to iterate for formatting.

Olivier.

Reply via email to