On 19/2/03 11:44 am, [EMAIL PROTECTED] at [EMAIL PROTECTED] spake thus:
> First I just want to confirm that DateTime does not support fractional
> seconds? Its a little used part of the spec,so I hardly think its a big
> deal, but it would be nice to support if possible.
Please can we support them?
> W3CDTf doesn't have any concept of a duration, so I left the
> parse_duration(), and format_duration() methods out of the class, is this
> allowed by the Format API? (understanding that formats are still an alpha
> feature)
Maybe they should just return undef? Maybe they should return an error? I
think they should still exist just so they fit in with other Format modules.
Format modules could possibly have their own methods that aren't in other
Format modules (I can't think what), but they should at least contain the
'default' methods.
> Any thoughts on creating a Date::Format base class? I imagine it would be
> empty exception for some minimal documentation of the API. (or you could
> stick in methods like parse_format { die "Must be overriden"; } but that
> makes it impossible to use can() )
Sounds good to have it there (assuming you mean DateTime::Format), even just
as a POD for the API. I can only think of a couple of reasons for accessing
it as anything but docs:
1. getting it to return a list of available Formats,
2. auto-installing a Format that isn't yet installed.
3. becoming a clone of some format at run time, just to shorten the name:
use DateTime::Format q/W3CDTF/;
or even:
use DateTime::Format $Users_Format_Preference;
(Please note that these are just ideas and not suggestions)
Cheers!
Rick
--------------------------------------------------------
�� � � � � � There are 10 kinds of people:
�� those that understand binary, and those that don't.
--------------------------------------------------------
�� The day Microsoft makes something that doesn't suck
�� � is the day they start selling vacuum cleaners
--------------------------------------------------------