Hello Rich Bowen, in a previous mail you wrote:

> First, there's the Time:: vs Date:: issue.
> I'd like to have some discussion as to what people think these
> namespaces mean, [...]

IMHO, Date:: modules should predominantly deal with dates, i.e.,
years, months, days, weeks, days of week, all that stuff.
Time:: modules should predominantly deal with time, i.e.,
hours, minutes and seconds.
Of course there are border cases, for instance modules that
deal with seconds since the epoch for date calculations.
Maybe there should be a "DateTime::" namespace for modules
that deal with both.

> What I'd like to propose here is a namespace hierarchy where modules
> get put in places that reflect their purpose.
> [...]

Sounds good, but be aware that there are always modules which won't
fit into any category scheme...

> And then there are the standards like Date::Manip and Date::Calc. They
> should probably just stay where they are. I think that a certain
> amount of duplication is inevitable when there are monolithic modules
> like these two which do EVERYTHING. They are great modules.

Thanks a lot for your high esteem! :-)

> They're just a little heavy.

I have to disagree. :-)
The Date::Calc 5.0 shared object library is just 77505 bytes in length
on my FreeBSD system (and the Date::Calc 5.0 Perl wrapper is only 8318
bytes in length). This is probably less than many of the date modules
written in plain Perl!

> Please let me know what your thoughts are on these things. And let me
> know that I'm not just talking to myself on this list.

There you are. :-)

BTW, the upcoming new release of Date::Calc version 5.0 will contain
modules for date calculations that take holidays into account (after
too many people asked for this feature, I finally gave in and wrote
it). These modules are called Date::Calendar, Date::Calendar::Year
and Date::Calendar::Profiles.

I hope these names are okay for you, because I probably wouldn't even
have the time to change them if not. For private reasons, this will
probably be the last major release for a long, long time, and I will
probably only have about enough time to just finish version 5.0 (a few
parts of the documentation are lacking).

If you'd like to take a look at the current state of affairs, direct
your browser to
    http://www.engelschall.com/u/sb/download/pkg/Date-Calc-5.0.tar.gz

Best regards,
-- 
    Steffen Beyer <[EMAIL PROTECTED]>
    http://www.engelschall.com/u/sb/whoami/ (Who am I)
    http://www.engelschall.com/u/sb/gallery/ (Fotos Brasil, USA, ...)
    http://www.engelschall.com/u/sb/download/ (Free Perl and C Software)

Reply via email to