> The infrastructure does exist: a DT::Duration can contain years > (actually, it contains months; but the conversion months <=> years is > unique), and a DT of say 2 years and 3 months already is relative to > DateTime. > > The only problem is that DT::subtract_datetime doesn't use it. It > probably should. (It would be even better if there was an option to > calculate the difference in days & secs. But the default should probably > be to return a difference of months, days, minutes, seconds.)
Yes, it can contain years but in doing so you loss precision. The current behavior preserves the maximum amount of accuracy possible. Thats why I'm advocating another class to convert to non-position independent values. -J --