> Perhaps I'm just approaching this all wrong. I'm just looking for a
simple way to compute some ones age today.

What you want is to normalize the values of a duration relative to some fixed point in time. I agree this is something that we need to do. Patches are welcome. :)

So if I read this correctly the answer is at this time what I'm after is not possible with DateTime directly. But, what I request is something you all desire and hope to have working when someone has the time. I actually wouldn't mind taking a look to see if I could contribute but at this point if:


1968-06-28
2003-08-17
Years:0
Months:0
Days:2
Delta Months:0
Delta Days:12833

is viewed as correct in representing the duration between those two dates I feel I'm missing a little to much to grasp some of the basics to contribute. I really don't see what the years months days methods are all about and if the delta's are simply just supposed to all add up to the duration then I can make since of the Delta's but it seems like I should have some methods representing the deltas in other forms that would also include years. Do you have some other design specs for the DateTime::Duration module that might help me to understand the above output better.

However if on the other hand some part of the output above although perhaps correct not exactly what is intended or just stubs for what is desired then if I new what was intended/desired I probably could take a look and see if the effort to produce what I desire from DateTime is worth it. If years really should produce 35 and simply isn't because that method is a stub I would be happy to see what I can produce.

Reply via email to