Garrett, Philip (MAN-Corporate) wrote:



I think what Dave meant was that you could subclass DateTime and add
your method to that subclass.  DateTime::Span and DateTime::SpanSet
should continue to work fine with your subclass, because it is-a
DateTime.

I don't think you need to subclass DateTime::Span and DateTime::SpanSet
at all, unless I don't understand your problem.

Hi Philip

Yes it is working. Subclassing of DateTime was the right
way. I had some troubles for getting a reference of
the DateTime object(s) within DateTime::Span. There is
no method for directly gaining access to these objects.
dt objects delivered by start and end method of DateTime::Span
are always clones.

Thanks for your help
Best regard
Herbie

Reply via email to