On Mon, 13 Dec 2004, Joshua Hoblitt wrote:

On Mon, 13 Dec 2004, Dave Rolsky wrote:

On Mon, 13 Dec 2004, Joshua Hoblitt wrote:

It looks like the normalization is hosed.

This method, for the nth time, does not convert between units which do not have a fixed conversion rate.

Whooo, I seem to have missed the bus here. Wasn't the entire point of ->in_units so people would stop bitching about the other accessors not doing what they had been trained to expect? How is ->in_units possibly useful otherwise?

It will convert between _convertible_ units:

  years <=> months
  weeks <=> days
  hours <=> minutes
  seconds <=> nanoseconds

I for one am getting really tired of all the complaints about DT::Duration. Why don't we just add a bunch of accessors, with really verbose names, that return deltas relative to 0000-01-01T00:00:00 and document the hell out of the fact that this is what's going on. e.g.

Something like that sounds reasonable.

->estimated_years
->guessed_months
->imperfect_days,
->imprecise_hours
->loose_minutes,
->rough_seconds
->surmised_nanoseconds
->uncertain_years
->unprecise_months
->unscientific_days
->approximate_hours
->relative_minutes
->seconds_relative_to_0

The names need some work ;)


-dave

/*===========================
VegGuide.Org
Your guide to all that's veg.
===========================*/

Reply via email to