> Again I fail to see the logic or even value in the DateTime::Duration > behaving as above. But, I'm sure I'm probably just missing something > important.
Durations are independent of dates and times. > The only one that does makes since is Deltas but only > because it is returning a hash that has 10 elements in it. The Delta If you would have used my example it would have printed all the hash keys and values. Your use of the concatenation operator forced scalar context so you ended up with the '10'. > Days is sort of interesting but its seems like a lot of work for me > to figure out the number of years from that especially when I think > the point of this is to take into account all the strange ness that > goes on between missing days seconds etc that go on over time. Years relative to what? Years are _not_ all the same length. Nor are months, days, hours, or even minutes. This is what makes this such a complicated problem. I [we] understand your confusion but DT::Duration is correct. > 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. :) -J --
